Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I agree that hue rotation makes for some weird gradients. Linear RGB is an acceptable color space for gradients, because gamma correction is accounted for. But performing a linear interpolation in sRGB or the like leads to a linear gradient which appears to ramp steeply from one color stop to the next. However, if you compare Linear RGB with CIELAB then you'll notice the same thing, the CIELAB gradients look smoother as linear movement through the color space more closely mirrors linear movement through our human perceptual system.


LAB is good but not great. If you do a gradient from pure green to pure blue, you'll see some purples and other color oddities in the mix.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: