Skip to content

Improve random colors #14

@origamimagiro

Description

@origamimagiro

Currently, GUI.COLORS.rand is a random selection of named colors. Should generate these instead, for example:

  • start at hsl(val, 100%, 50%)
  • add 113 to val mod 360 to generate next color

Since 113 and 360 are relatively prime, this should provide 360 hues that are well separated.
I propose 113 because it is a prime close to 180 divided by the golden ratio.

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