A newer version of Max is available. Click here to access the latest version of this document.

jit.rgb2hsl

Convert HSL to RGB

Description

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

matrix inputs:1, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
out n/a 1 1 1 4 1 char float32 float64

Information for Jitter Matrix Operator (MOP) messages and attributes to this object

Attributes

Name Type g/s 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.

Information for box attributes common to all objects

Examples

See Also

Name Description
jit.colorspace Convert between colorspaces
jit.hue Rotate hue
jit.hsl2rgb Converts HSL to RGB
jit.rgb2luma Converts RGB to monochrome (luminance)
jit.traffic Multiply the planar vector by a matrix