Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even rotations throughout the HSL colorspace produce incorrect complements #12

Open
B3rry opened this issue Mar 16, 2017 · 0 comments
Open

Comments

@B3rry
Copy link

B3rry commented Mar 16, 2017

Evenly rotating around the H in an HSL color model will not produce true complementary colors.

Light based color models have equidistant Red , Green 120°, and Blue 240° values. In contrast, pigment-based color models (on which the foundations of color theory are derived) have equidistant Red, Yellow, and Blue values.

A quick test shows that rotating 180° from a “pure” blue results in the following: (240°+(360/2))%360)=60°. The output of this transformation is a “pure” yellow: a non-complement. With orange, 30°, being the correct complementary value.

The proper method for transforming a light-based color into it's pigment-based complement (and respective derivative harmonies) is to divide the distribution of values evenly between the primary points of , 60°, and 240°. This means you should produce three relational formulae based on the proportional offset, and rotate through them once the primary thresholds are met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant