Convert RGB colors (0-1 range) to HSL (hue-saturation-luminance) space. Used for passing RGB colors to pavo::adjacent.
Arguments
- rgb_matrix
RGB colors in an nx3 matrix (rows = colors, columns = channels).
- radians
Logical. Return HSL colors in units of radians (
TRUE
) or degrees (FALSE
)?- pavo_hsl
Logical. Return HSL matrix in a format that can be passed directly to pavo::adjacent as the
hsl
parameter?