-
-
Notifications
You must be signed in to change notification settings - Fork 95
Add alpha blending #230
Copy link
Copy link
Open
Labels
beginner friendlyTractable issues, good for first time contributorsTractable issues, good for first time contributorsenhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
beginner friendlyTractable issues, good for first time contributorsTractable issues, good for first time contributorsenhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
We should have a method for alpha blending. This is required to be able to do contrast calculations properly (see w3c/csswg-drafts#7358 ).
Things to decide:
overlay()orover()? OroverlayOn()or juston()which is more clear as aColormethod, but not so much in the procedural API (SeeoverlayOn(color1, color2)vscolor1.overlayOn(color2)). Whatever we come up with should make sense in both APIs, so I’m leaning towardover()which is also the operator name.The math seems pretty straightforward. @svgeesus are there any considerations when applying this to other color spaces? What color space do we use for the result? I guess the color space of the color being overlaid?