Hacker News new | past | comments | ask | show | jobs | submit login

To be fair, lerp still mixes colors, it just mixes ugly colors.



(1,0,0) and (0,0,1) are each twice as bright, in terms of photons, as (0.5,0,0.5).

If you quickly apply gamma=2 so the midpoint is (0.707,0,0.707) your gradient will look much better. Although other commenters suggested mixing in more complicated colour spaces.




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

Search: