section t of routines in color.i

Home Manual Packages Global Index Keywords Quick Reference | # functions in color.i - t
to_hsv |
                 hsv= to_hsv(rgb)
              or hsv= to_hsv([r,g,b])

         return the HSV representation of the n-by-3 array of RGB colors
         rgb: red, green, blue from 0 to 255
         hsv: h= hue in degrees, red=0, green=120, blue=240
              s= saturation from 0 (gray) to 1 (full hue)
              v= value from 0 (black) to 1 (full intensity)
    	  s= 1 - min(r,g,b)/max(r,g,b)
              v= max(r,g,b)

    interpreted function, defined at i/color.i   line 111
SEE ALSO: | to_rgb
to_rgb |
                 rgb= to_rgb(hsv)
              or rgb= to_rgb([h,s,v])

         return the RGB representation of the n-by-3 array of HSV colors
         rgb: red, green, blue from 0 to 255
         hsv: h= hue in degrees, red=0, green=120, blue=240
              s= saturation from 0 (gray) to 1 (full hue)
              v= value from 0 (black) to 1 (full intensity)
    	  s= 1 - min(r,g,b)/max(r,g,b)
              v= max(r,g,b)/255

    interpreted function, defined at i/color.i   line 68
SEE ALSO: | to_hsv