[[色空間>ColorSpace]] > [[HLS]]

- [[HSB]] とも呼ぶ

- HSLのかいせつ。
--  http://moon.gmobb.jp/renno/cgi/junk.cgi/paintgraphic2/rikutsu/hsl.htm
- ImageMagickでHSLとHSV色空間を理解する
--  http://smash.nobuto-murata.org/2009/12/imagemagickhslhsv.html

* 変換式 [#z91c128c]

- rgb2hsv
--  http://9ffb2529c70454bd41d0-3fb10b1a8c4ec78f5e672fbc3d967936.r30.cf2.rackcdn.com/rgb2hsv.html

 V = max(R,G,B)
 S = (V-min(R,G,B))/V if V<>0, 0 otherwise
 H =
  (G - B)/6/S, if V=R;
  1/2+(B - R)/6/S, if V=G;
  2/3+(R - G)/6/S, if V=B.


- [http://www.technotype.net/tutorial/tutorial.php?fileId=%7BImage%20processing%7D&sectionId=%7B-converting-between-rgb-and-hsv-color-space%7D Converting between RGB and HSV color space]

- https://qiita.com/keim_at_si/items/c2d1afd6443f3040e900
 // clamp( abs(fract(h+vec3(0,2,1)/3) * 6 - 3) - 1, 0, 1)
 return ((clamp(abs(fract(h+vec3(0,2,1)/3.)*6.-3.)-1.,0.,1.)-1.)*s+1.)*v;

* 関連 [#rel]


- [[色>color]]

Reload   Diff   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes