hsv_to_hsl: Convert HSV to HSL

View source: R/color-spaces.R

hsv_to_hslR Documentation

Convert HSV to HSL

Description

Convert HSV to HSL

Usage

hsv_to_hsl(hsv)

Arguments

hsv

A dataframe or matrix with H, S and V 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 H, S and L colour channels. Hue is constant between colour spaces, while saturation differs.

Examples

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

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