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

Blend modes #13

Open
benjamminf opened this issue Jan 6, 2014 · 4 comments
Open

Blend modes #13

benjamminf opened this issue Jan 6, 2014 · 4 comments

Comments

@benjamminf
Copy link
Contributor

Perhaps an ability to use blending modes? Usage could be something like:

var color1 = Spectra(...);
var color2 = Spectra(...);
var blended = color1.blend(color2, mode);

Where mode is the name of the blend mode as a string.

@avp
Copy link
Owner

avp commented Jan 6, 2014

Looks good - do you want to implement these?

@benjamminf
Copy link
Contributor Author

Now that I think about it, it might make more sense to specify each blend mode as it's own method.

color.dissolve(...);
color.multiply(...);
color.screen(...);
...

But I'll give it a shot.

@avp
Copy link
Owner

avp commented Jan 6, 2014

That sounds good. These are kind of like variations on mix so they really should be different functions.

@benjamminf
Copy link
Contributor Author

Yeah exactly what I was thinking.

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

No branches or pull requests

2 participants