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

Interpolation color space #119

Open
demurgos opened this issue Jul 11, 2017 · 1 comment
Open

Interpolation color space #119

demurgos opened this issue Jul 11, 2017 · 1 comment

Comments

@demurgos
Copy link

Hi,
Would it be possible to specify the interpolation color space for functions performing color processing (mix, darken, etc.)?

The SVG specification defines the sRGB and linear RGB color spaces. Browsers (and this library) use sRGB interpolation by default but I'd like to use linear RGB for a more physically-accurate effect.

@Qix-
Copy link
Owner

Qix- commented Jul 11, 2017

Right now color spaces aren't taken into account. I believe chroma.js does, but I can't guarantee anything (also last I checked they still aren't immutable, so watch out for that).

I want to add color space support but I need to research more about it, and then find the time 😅.

This is a great use-case though.

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