col2hsv: Convert R color to HSV matrix

col2hsvR Documentation

Convert R color to HSV matrix

Description

Convert R color to HSV matrix

Usage

col2hsv(x, ...)

Arguments

x

R color

...

additional parameters are ignored

Details

This function takes a valid R color and converts to a HSV matrix. The output can be effectively returned to R color with hsv2col, usually after manipulating the HSV color matrix.

Value

matrix of HSV colors

See Also

Other jam color functions: alpha2col(), applyCLrange(), col2alpha(), col2hcl(), col2hsl(), color2gradient(), fixYellowHue(), fixYellow(), getColorRamp(), hcl2col(), hsl2col(), hsv2col(), isColor(), kable_coloring(), makeColorDarker(), make_html_styles(), make_styles(), rgb2col(), setCLranges(), setTextContrastColor(), showColors(), unalpha(), warpRamp()

Examples

# start with a color vector
# red and blue with partial transparency
colorV <- c("#FF000055", "#00339999");

# confirm the hsv matrix maintains transparency
col2hsv(colorV);

# convert back to the original color
hsv2col(col2hsv(colorV));


jmw86069/jamba documentation built on March 26, 2024, 5:26 a.m.