jit.rgb2hsl Convert HSL to RGB

The jit.hsl2rgb object converts a 4 plane matrix of ARGB (alpha, red, green, blue) data to AHSL (alpha, hue, saturation, lightness) data. An offset and a scaling factor can be applied to the hue, saturation, and lightness data individually.

Matrix Operator: in[1] out[1]
Name IOProc Planelink Typelink Dimlink Plane Dim Type
in n/a n/a n/a n/a n/a n/a n/a
out n/a yes yes yes 4 all char float32 float64

Attributes:
Name Type Description
hoffset float The hue offset (default = 0.)
hscale float The hue scaling (default = 1.) Hue scaling values above 1. wrap to 0.
loffset float The lightness offset (default = 0.)
lscale float The lightness scale (default = 1.) Lightness scaling values above 1. clip to 1.
soffset float The saturation offset (default = 0.)
sscale float The saturation scale (default = 1.) Saturation scaling values above 1. clip to 1.

Example:

See Also:
jit.colorspace, jit.hue, jit.hsl2rgb, jit.rgb2luma, jit.traffic