hsv2rgb: HSV to RGB conversion

Description Usage Arguments Value See Also Examples

Description

Convert matrices containing hue, saturation, and brightness values into hex color strings.

hsv2rgb transforms colors from HSV space into RGB space

Usage

1

Arguments

col

A matrix containing three rows (h, s, v) and a column for each color specified. Values are in [0,1].

alpha

Whether or not the alpha channel (opacity) value should be included. Because HSV matrices do not have this information, full opacity is used.

Value

An integer matrix with three rows or four rows (red, green, blue, alpha) a column for each color specified in col. Values are in [0,255].

See Also

col2hsv for creating HSV value matrices from R colors and col2rgb for converting R colors to RGB matrices

rgb2hsv for converting from RGB to HSV

Examples

1
2
# Convert back and forth
hsv2rgb(rgb2hsv(255,10,0))

briandconnelly/colormod documentation built on May 13, 2019, 5:13 a.m.