Skip to contents

Convert a color in HSL (Hue,Saturation,Light) to hexadecimal format.

Usage

Hsl2Hex(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

A character of the color's hexadecimal code.

Details

Hsl2Hex

Examples

Hsl2Hex(c(43.8,0.873,0.492,0.498),alpha.bln=TRUE)
#> [1] "#ebb0107f"