6 ms·
An interesting issue is that it's currently impossible to pick the direction of the hue rotation, so if your start and end colors are one opposite sides of the
by daxterspeed 7y ago
An interesting issue is that it's currently impossible to pick the direction of the hue rotation, so if your start and end colors are one opposite sides of the hue circle this tool will go "the long way around". Great for rainbows, not so great if you want to go from orange to purple over red.
- tbabb 7y agoThis is why I much prefer the Lab color space over HSV or HSL— it's much better suited to interpolation and mixing. The critical properties are: * It's a vector space, so mixing colors means mathematically mixing the components. There is no polar angle that can "go around the wrong way", or suddenly cause the interpolation to change when one color coordinate crosses zero degrees. * It's perceptually uniform, so that taking mathematically even steps in color space means the result will be perceptually even as well (compare to color spaces which don't account for gamma, and small change on a dark color make a huge difference, but the same step in a light area is invisible). * Because of the perceptual uniformity, there are no luminance dips or peaks in interpolated colors. In RGB, for example, interpolating two saturated colors which are far away from each other on the color wheel will result in dark grey or black in the middle of the gradient— not so with Lab. Also, consider an HSV rainbow: If you desaturate it, it isn't a uniform grey– some parts of the wheel are randomly brighter than others, because the human eye is more sensitive to yellow and green light, and very insensitive to blue. A rainbow with constant L coordinate in Lab space will have constant luminance. * Because chromaticity is a 2D vector space in Lab color (rather than a single coordinate), interpolating between two distant hues won't put crazy unrelated hues in between them, but HSL and HSV will. Saturated, complementary colors will appropriately interpolate through a neutral grey in Lab, instead of through a "random" saturated hue. Here's [1] an image of some constant-luminance (i.e., constant "L" coordinate) slices of Lab space, to give a sense of what it looks like. Here's [2] a little color picker (found with a Google search) which shows you the results of interpolating in different spaces— you can see that RGB is pretty bad, but in HSV or HSL it's not hard to make something look extremely broken. Those two spaces are definitely the wrong choice for interpolation. [1] https://en.wikipedia.org/wiki/CIELAB_color_space#/media/File:Lab_color_space.png https://en.wikipedia.org/wiki/CIELAB_color_space#/media/File... [2] http://davidjohnstone.net/pages/lch-lab-colour-gradient-picker http://davidjohnstone.net/pages/lch-lab-colour-gradient-pick...
- chrisweekly 7y agoThanks for such a terrific, well-informed and helpful comment! It's a strong reminder how unbelievably complex "color" is.
- gowld 7y agoIt's just an infinite-dimensional vector space ;-)
- deltron3030 7y agoAs an artist and designer I somehow can't get over the complementary hues in the Lab color space, NCS complementaries fit much better visually. The main advantage of mathematically derived and absolutete color models like Lab is that they can't be protected by copyright. There is an intiative that tries to be an alternative to Pantone in that market: https://www.freiefarbe.de/en/ https://www.freiefarbe.de/en/ There's an also an interesting lecture on YT: https://youtube.com/watch?v=JAR6zDkboJU https://youtube.com/watch?v=JAR6zDkboJU Here some more infor about color circles and systems: https://www.handprint.com/HP/WCL/vismixmap.html https://www.handprint.com/HP/WCL/vismixmap.html
- vanderZwan 7y agoLab isn't the only perceptually uniform color space out there, have you tried any others? Jab is a fairly new one, maybe it works better for you: https://observablehq.com/@jrus/jzazbz https://observablehq.com/@jrus/jzazbz
- amelius 7y agoBut is a perceptual colorspace "natural"? A physics-based vectorspace is the most natural thing. Adding vectors in a perception based vectorspace seems unnatural to me.
- tbabb 7y agoLab is not energy linear, and if you're doing rendering/illumination, you won't want to use Lab (unless you're deliberately trying to stylize). It is designed to be a good model of human color perception, not the physics of light. Lab color space is good for mixing colors in a way that behaves intuitively. E.g. "what color is 'halfway between' these two other colors?", mixing "paint" digitally, producing pleasing gradients, picking colors or creating palettes.