chroma.js icon indicating copy to clipboard operation
chroma.js copied to clipboard

HSP color model

Open leeoniya opened this issue 11 years ago • 1 comments

here's something may be worth adding that piggybacks on the H and S of HSL, but changes the L (luminance) to P perceived brightness. The turns out to be quite a visually intuitive way to adjust color brightness.

http://alienryderflex.com/hsp.html

leeoniya avatar Nov 13 '14 22:11 leeoniya

The HSP color model seems less useful than the similar HSLuv (HSLuv) model. Both models define Saturation as a percentage of maximum chroma, and have a perceptual Lightness. But HSLuv fixes the Hue too, so that the hues are spread perceptually uniformly. See the table of comparison between HSL and HSLuv.

Since HSLuv seems strictly better than HSP, for all uses except reading values that people have already defined in HSP, I don’t think HSP should be supported.

HSLuv already has a standalone JavaScript library, but you could still support it in chroma.js if you wanted.

roryokane avatar Feb 15 '18 15:02 roryokane