Ricks-Lab / colors-ugen

Utility to generate a list of unique colors
GNU General Public License v3.0
2 stars 0 forks source link

Need help in stepping through YIQ Color Space #1

Open Ricks-Lab opened 4 years ago

Ricks-Lab commented 4 years ago

I have completed the generation of a set of colors, based on stepping through the HSV color space, but the colors vary in brightness for a given V, and consecutive colors near green and not easily distinguished.

I think stepping through YIQ is a better solution and will solve the brightness issue and maybe the green issue. I have included simple code to step through YIQ space, but it is definitely wrong. Need to find correct way so select evenly spaced points in this space.

Good reference material:

Ricks-Lab commented 4 years ago

Here is a great example of 125 distinct colors from Matlab: Color Cubes

Ricks-Lab commented 4 years ago

Here is a link which has the formulas to potentially translate yiq space: yiq space translation