Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants