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

Fixed color lightening changing hue, as well as add screen color blending mode #617

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

seanlnge
Copy link

The method used to lighten and darken colors was implemented in a way that changed the hue, so I rewrote the method to lighten or darken colors by a percentage between 0-1, instead of adding a single number n to red, green, and blue.

I also implemented the screen color blending mode using the method on wikipedia.

Fixed issue with lightening and darkening color having an effect on the hue of that color, as well as implement the screen color mixing mode.
Copy link

@sravanth-space sravanth-space left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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

Successfully merging this pull request may close these issues.

None yet

2 participants