swatch Reference
Choose a color
Messages
message causes output of the RGBA values of the current color at the selected (x,y) position on the 2-dimensional colorspace, taking into account the current saturation value.Arguments
[int] In left inlet: Set the red color value (ignores values over 1), and cause output of all values. Note: Unlike most Max objects, input to any one of the three inlets will re-calculate the current color location on the swatch, and trigger output.(inlet1)
Arguments
green
[int]
In middle inlet: Set the red color value (ignores values over 1), and cause output of all values.
Note: Unlike most Max objects, input to any one of the three inlets will re-calculate the current color location on the swatch, and trigger output.
(inlet2)
Arguments
[int] In right inlet: Set the red color value (ignores values over 1), and cause output of all values. Note: Unlike most Max objects, input to any one of the three inlets will re-calculate the current RGBA color location on the swatch, and trigger output.float
Arguments
[float] Set the red color value (0.-1.), and cause output of all values.(inlet1)
Arguments
green
[float]
Set the green color value (0.-1.), and cause output of all values.
green [number] [number]
alpha [number] A list of three numbers between 0. and 1. sets the four RGBA color components (red, green, blue, alpha), refreshes the display and causes RGBA output.
(inlet2)
Arguments
[float] Set the red color value (0.-1.), and cause output of all values.Arguments
[number]green [number] [number]
alpha [number] A list of three numbers between 0. and 1. sets the four RGBA color components (red, green, blue, alpha), refreshes the display and causes RGBA output.
alpha
Arguments
opacity
[float]
The word
, followed by a floating-point number between 0. and 1., will set the RGBA alpha (opacity) value. saturation [int]
lightness [int] The word swatch object converts these values to RGBA color values, refreshes the display, and causes output of the RGBA values.
, followed by a list of three numbers between 0. and 1., sets the color based on the given hue (x-axis), saturation, and lightness (y-axis) values. The green [number] [number]
alpha [number] The word
, followed by a list of three numbers between 0. and 1. sets the four RGBA color components (red, green, blue, alpha) and refreshes the display without causing RGBA output. saturation [int]
lightness [int] The word , followed by a list of three numbers between 0. and 1., sets the color based on the given hue (x-axis), saturation, and lightness (y-axis) values and the refreshes the display. Unlike the message the message does not output the corresponding RGBA values.
Arguments
[int], followed by a floating-point number between 0. and 1., will set the RGBA alpha (opacity) value. saturation [int]
lightness [int] The word swatch object converts these values to RGBA color values, refreshes the display, and causes output of the RGBA values.
(mouse)
Clicking and dragging on the swatch object will calculate and output the RGBA color at the selected (x, y) position on the 2-dimensional (hue-lightness) colorspace, taking into account the current saturation value.Arguments
[number], followed by a list of three numbers between 0. and 1., sets the color based on the given hue (x-axis), saturation, and lightness (y-axis) values. The green [number] [number]
alpha [number] The word
sethsl
Arguments
[int], followed by a list of three numbers between 0. and 1. sets the four RGBA color components (red, green, blue, alpha) and refreshes the display without causing RGBA output. saturation [int]
lightness [int] The word , followed by a list of three numbers between 0. and 1., sets the color based on the given hue (x-axis), saturation, and lightness (y-axis) values and the refreshes the display. Unlike the message the message does not output the corresponding RGBA values.