Gamma correct RGB interpolation #14
Comments
|
This would be lovely. I’d recommend adopting an optional gamma parameter for interpolateRgbGamma, similar to what is done for Cubehelix interpolation. |
mbostock
closed this
in 05d909a
Feb 2, 2016
vorg
commented
Feb 3, 2016
|
Nice one. Thanks |
|
Thanks for the suggestion. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

vorg commentedJan 7, 2016
Are you considering adding it in the future?
Interpolating RGB values without gamma correct produces darker "dirtier" colors than they should be.
The solution would be to move values to linear space, interpolate and bring it back to gamma space.