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 111SEE 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 68SEE ALSO: to_hsv