Skip to main content

builtin_hsv

Function builtin_hsv 

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

Convert HSV color values to hex color strings.

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

@param h hue, values in [0,1] (default 0) @param s saturation, values in [0,1] (default 1) @param v value (brightness), values in [0,1] (default 1) @param alpha transparency, values in [0,1] (default 1) @return character vector of hex color strings