REBOL Programming/rgb-to-hsv

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

RGB-TO-HSV rgb 

DESCRIPTION:[edit]

Converts RGB value to HSV (hue, saturation, value)

RGB-TO-HSV is a native value.

ARGUMENTS[edit]

  • rgb -- (Type: tuple)

SOURCE CODE[edit]

rgb-to-hsv: native[
    "Converts RGB value to HSV (hue, saturation, value)" 
    rgb [tuple!]
]