3 ms·
So, the "solution" for having a gradient go from yellow to a blue (via a gray region) is to have yellow go through green and then blue? Color me unimpressed. I
by Jerry2 5y ago
So, the "solution" for having a gradient go from yellow to a blue (via a gray region) is to have yellow go through green and then blue? Color me unimpressed.
I remember years ago using non-linear functions to avoid a similar problem in a different field. I bet the same solution would work here and wouldn't look so "wrong". You could pick some non-linear fun to interpolate between values. And you could interpolate different RGB channels at an offset. The reult would be less gray in the middle.
- ireflect 5y agoThat's a poor take. The solution is to do linear interpolation in HSL instead of in RGB. It's a simple and useful insight and the article does a fantastic job explaining and motivating it. And then goes so far as to supply an interactive tool to try it out!
- Jerry2 5y agoIf you interpolate over H, you will always introduce other colors into your gradient.
- cush 5y agoBlue plus yellow makes green… What you’re describing would result in a yellow to blue gradient having green in the middle - at least that’s what would be interpreted by the human eye.