IDPmisc (version 1.1.19)

col2hsv: Convert Color to hsv Code

Description

Converts color names or values to hsv code.

Usage

col2hsv(col)

Arguments

col

Vector of color code.

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.

See Also

col2rgb, rgb2hsv, hsv

Examples

Run this code
# NOT RUN {
col2hsv(c("blue","green","red"))
# }

Run the code above in your browser using DataCamp Workspace