HOME | DD

undefinedreference β€” Colorshift

Published: 2022-04-24 13:24:23 +0000 UTC; Views: 3247; Favourites: 0; Downloads: 0
Redirect to original
Description Created colorscript in order to gain more mental control over RGB colors. How it works:

- 1000x1000px page, field width = 20px, therefore 50 fields
- color values range from hex 000000 (dec 0 - black) to hex ffffff (decΒ 16777215 - white)
- top color is hex 000000 (black)
- every iteration adds hex ffffff / 50 = 051eb8, or decimal 16777215 / 50 =Β 335544,3 (rounded: 335544)

The black in top probably shouldn't be displayed, since there is no white at the bottom either, and neither adds much value to begin with.

This is just a first crude iteration. More fine-grained approaches should be possible, like 'give me different shades of blue'

I have been looking at professional palette generators, and this too seem to be based on specific colors shifts, which are nothing other than additions/subtractions of RGB values. In an image editor you may have a slider representing 180 degrees in color shift, and those online palette generators appear to be based on fixed shifts, like 60 degrees at a time. Or the complementary color minus 30 degrees. Apparently such 'harmonious' shifts render color combinations that are 'pleasing to the eye'. Which would make sense, because all art is in the end math, and often of a rather simple and straightforward kind. It would be interesting to figure that out.
Related content
Comments: 0