Auto hex value calculator?
July 24, 2011 3:44 PM Subscribe
Color-value calculation. What's my most efficient way to come up with the hex values of 30 discrete colors that fade as evenly as possible from 220088 to DDCCFF?
posted by kalapierson to media & arts (9 answers total) 3 users marked this as a favorite
In other words: the first color is 220088; the thirtieth color is DDCCFF, and I want to figure out the 28 specific values in between those two values that fade as smoothly as possible in between them.
Does not have to be perfect mathematically. End purpose: 30 words on a page of HTML that are each going to have a span tag with a different color, so the visual effect is this gradual fade.
(I'm open to other coding suggestions too, but I do want to accomplish this with code, not just with an image of the 30 words faded graphically.)