Skip to main content

builtin_hcl

Function builtin_hcl 

Source
fn builtin_hcl(
    args: &[RValue],
    named: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Convert HCL (Hue-Chroma-Luminance) color values to hex color strings.

Vectorized over h, c, l, alpha — all inputs are recycled to the length of the longest input.

@param h hue in degrees [0,360] (default 0) @param c chroma (default 35) @param l luminance in [0,100] (default 85) @param alpha transparency in [0,1] (default 1) @return character vector of hex color strings