Skip to main content

builtin_rainbow

Function builtin_rainbow 

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

Generate a rainbow color palette using HSV color space.

@param n number of colors to generate @param s saturation (default 1) @param v value/brightness (default 1) @param start starting hue in [0,1] (default 0) @param end ending hue (default max(1, n-1)/n) @param alpha transparency in [0,1] (default 1) @return character vector of hex color strings