Search the Community
Showing results for tags 'color rgb hsl'.
-
Extended Color Mixer i want to share one of my little helpers. - what does it do ? RGB color system is the mathematical description of colors, so to say, it explains colors (a sensual impression) to a machine. in contrast to that, the human eye interprets colors in the HSL (hue-saturation-luminance) matrix. these two systems are not much compatible. if you want to use "neighbour" colors in a gui, or very distant colors for more contrast (e.g. in games), the tuning on the Red-Green-Blue scale rarely returns satisfying results and it is very hard to compare colors to find out the most suitable. so i took the well known windows colorpicker, which uses HSL system, and extended it. the HSL square displays colors according to the hue on the horzontal and saturation on the vertical axis. the luminance is the "third dimension" slider to the right of it. so, HSL is a 3D model of colors, while RGB is 2 dimensional, a triangle with Red Green and Blue at the edges. i amended sliders for the RGB color scale on the right to the colorpicker window. the color you pick is displayed in the central "base color" label. to the bottom of the window i added an array in which related colors to the base color will be created. basically you have to choose if you want to create similar or "distant" colors to the base color. you can choose a threshold that represents the min/max distance to the base color. additionally, you can choose the standard for the distance calculation. the euclidean distance simply is the spacial distance in the RGB room. the industry defined some weighting standards of the colors to fit better to the human eye's sensation (NTSC, HDTV, HSP a.o.). additionally you can set up saturation and luminance filters to precise your search. the mixer puts the chosen color in Hexcode into your clipboard. if you keep the ctrl button pressed, all colors you pick will be collected. you can toggle the clipboard function off by clicking on the clipboard statusbar label, and restore your old clipboard content. the two buttons "Collect All" and "OK" have no function that i know of, it is an "unfinished project" now you can try it out and play around. i have often used the modified "Shades()" function in other scripts to create desired colors within a program. feel free to use the algorithms. . taken down. Edit: screenshot