I am trying to get n colors from a linear gradient. I have gradients that can be made from 2 to 50 different colors. Having a gradient how could I Get 5, 8, 10 or even 100 evenly spaced colors of the gradient.
In this image I have a gradient made up of 6 transition colors (It could be more or less) I have access to the transition colors as an array of colors that made it, but what I want from the gradient is 11 (or some other number) evenly spaced colors. I am not using alpha, these are just RGB colors. Is there something like this in C#?

Comments
Post a Comment