ColourSum


Re: ColourSum
#3
Yes, I'll try to add an option to pick a colour on the screen and find the nearest LDraw-Colour of it...
Actually the program calculates all distances sqrt((r_1-r_2)^2+(g_1-g_2)^2+(b_1-b-2)^2) between the new calculated colour and the LDraw Colours, looks for the minimum of this distances and compare this minimum with the distance array to find the corresponding colour.
I can try to implement an HSL in/output as well.
Yes, the colour samples for the input values are on my todo list. But then I have to move the 'error check' (6 values, 0-f) must be done while the textbox changes its value or while leaving it. I'll think about. :-)

/Max

PS.: Please note, that my programming skills are a bit limited, so that I have to read several pages to get to the right path. :-)
PPS.: I think I'll remove the sqrt. So I can calculate with integers and don't need to convert to double. The result should be the same.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
ColourSum - by Max Martin Richter - 2015-01-25, 20:41
Re: ColourSum - by Philippe Hurbain - 2015-01-26, 8:02
Re: ColourSum - by Max Martin Richter - 2015-01-26, 9:27
Re: ColourSum - by Philippe Hurbain - 2015-01-26, 12:10
Re: ColourSum - by Mario Pascucci - 2015-01-26, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)