Skip to contents

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

Usage

Rgb2Hsl(rgb.col = NULL, alpha.bln = FALSE)

Arguments

rgb.col

<integer>: an integer of the color's RGB code.

alpha.bln

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

Value

A vector of the color's HSL code.

Details

Rgb2Hsl

Examples

Rgb2Hsl(c(235,176,16,127),alpha.bln=TRUE)
#>        hue saturation      light      alpha 
#>     43.836      0.873      0.492      0.498