Skip to content

Color schemes #2

@elekt

Description

@elekt

Now the coloring is simple like this.

double colorRatio = (1 - (double)iter / MAX_ITER);
colors[i][j] = *(struct Color*) malloc(sizeof(struct Color));
colors[i][j].R = 255 * 1.15 * colorRatio;
colors[i][j].G = 255 * 0.56 * colorRatio;
colors[i][j].B = 255 * 1.7 *colorRatio;

This should be generalized, i would recommend a function parameter, so that the coloring could be changed easily.

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