hsl_to_rgb: Convert HSL space into RGB space

View source: R/color-spaces.R

hsl_to_rgbR Documentation

Convert HSL space into RGB space

Description

Convert HSL space into RGB space

Usage

hsl_to_rgb(hsl)

Arguments

hsl

A dataframe or matrix with H, S and L colour channels located in the columns 1 to 3, respectively. H in degrees in [0, 360], S and L in [0, 1]

Value

A tibble of red, green and blue colour channels.

Examples

H <- sample(x = 0:360, size = 10, replace = TRUE)
S <- runif(n = 10)
L <- runif(n = 10)
hsl_to_rgb(data.frame(h = H, s = S, l = L))

schemr documentation built on June 25, 2024, 9:07 a.m.