-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Would need redoing the HSV encoding here:
Lines 151 to 161 in 011b26d
| { | |
| phi = M_PI + atan2 (cimag (ap[i][j]), creal (ap[i][j])); | |
| s = 1.0; | |
| v = (cabs (ap[i][j]) * cabs (ap[i][j])) / scr; | |
| //HSV->RGB formula from http://en.wikipedia.org/wiki/HSV_color_space | |
| Hi = (int) (floor (phi / (M_PI / 3.0))) % 6; | |
| f = phi / (M_PI / 3.0) - floor (phi / (M_PI / 3.0)); | |
| p = v * (1.0 - s); | |
| q = v * (1.0 - f * s); | |
| t = v * (1.0 - (1.0 - f) * s); |
Brief experiment with partially de-saturating seems to make it more pleasant on the eyes. (See also bash script, that applies some gamma function in imagemagick, I assume for an aesthetic reason?)
Clewin pointed to here for suggested code, and also recommended looking around the website: https://kentor.me/posts/generating-pastel-colors-for-css/
Metadata
Metadata
Assignees
Labels
No labels