hls: HLS Color Specification

View source: R/hls.R

hlsR Documentation

HLS Color Specification

Description

Create a HLS color from specifying hue, luminance and saturation.

Usage

hls(h = 1, l = 0.5, s = 1)

Arguments

h

hue value in [0, 1].

l

luminance value in [0, 1].

s

saturation value in [0, 1].

Details

HLS colors are a similar specification of colors as HSV colors, but using hue/luminance/saturation rather that hue/saturation/value.

Author(s)

Achim Zeileis Achim.Zeileis@R-project.org

See Also

hsv, hcl2hex, polarLUV

Examples

## an HLS color wheel
pie(rep(1, 12), col = sapply(1:12/12, function(x) hls(x)))

vcd documentation built on June 9, 2022, 9:07 a.m.