Skip to content

Clewin suggests less horrid colourscheme #1

@jarvist

Description

@jarvist

Would need redoing the HSV encoding here:

FractalLight/cavity_sim.c

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions