Skip to contents

Convert a color in HSl (Hue,Saturation,Light) format to RGB format.

Usage

Hsl2Rgb(hsl.col = NULL, alpha.bln = FALSE)

Arguments

hsl.col

<charcater>: a vector of the color's HSL code.

alpha.bln

<logical>: whether the alpha layer should be returned. (Default FALSE)

Value

An integer vector of the color's RGB code.

Details

Hsl2Rgb

Examples

Hsl2Rgb(c(43.8,0.873,0.492,0.498),alpha.bln=TRUE)
#>   red green  blue alpha 
#>   235   176    16   127