#603 HSV color support

None
closed-accepted
nobody
None
5
2013-02-17
2012-10-21
Ethan Merritt
No

New user-visible function hsv2rgb(H,S,V) creates a 24-bit RGB value from H,S,V in [0:1]. This allows use of hsv colors in plots with coloring style "rgb variable". The new coloring method is illustrated by a new demo for trig functions with complex domain and range. A preview of the demo is here:
http://gnuplot.sourceforge.net/demo_cvs/complex_trig.html

The new function can also be used to implement the capability suggested by Shige Takeno in patch #2963205.
hsv(h,s,v) = sprintf("#%06x",hsv2rgb(h,s,v))
plot FOO lc rgb hsv(H,S,V)

Discussion

  • Ethan Merritt
    Ethan Merritt
    2012-10-21

    Adds function hsv2rgb(H,S,V)

     
    Attachments
  • Ethan Merritt
    Ethan Merritt
    2013-02-17

    • status: open --> closed-accepted
    • milestone: -->