IDPmisc (version 1.1.20)

col2hsv: Convert Color to hsv Code

Description

Converts color names or values to hsv code.

Usage

col2hsv(col)

Value

Matrix with the rows

h

Hue of hsv-Signal: 0=red, 1/3=green, 2/3=blue, 1=red.

s

Saturation of hsv-Signal: 0=white, 1=full color.

v

Value of hsv-Signal: 0=black, 1=full color.

Arguments

col

Vector of color code.

Author

Rene Locher

See Also

Examples

Run this code
col2hsv(c("blue","green","red"))

Run the code above in your browser using DataCamp Workspace