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

suckah Reference

Get a pixel from the display

suckah

Description

Creates a click-able area that returns an RGB color, or can accept any screen coordinates to get the RGB values of that pixel.

Examples

Discussion



Note -- while [cmd]-clicking on the suckah when the patch is unlocked, the suckah sees itself.

Arguments

None.

Attributes

boundmode [int] (default: 0)

When enabled, the suckah object will only output color values within the bounds of the object's box. Coordinates outside of the object's bounds will be ignored.

compatibility [int] (default: 0)

Toggles the output of the suckah object in old-style integer values in the range 0-255 (0) or 0.-1.0 floating-point values (1).

outputalpha [int] (default: 1)

Toggles the output of 3-element RGB lists (0) or 4-element RGBA lists that include alpha channel values (1).

Common Box Attributes

Messages

list

Arguments

screen-x [int]
screen-y [int]
A list of two integers specifying x and y offset values from the upper left corner of the screen will cause the suckah object to report the color at the specified screen location in RGB format.

(mouse)

Clicking on the suckah object causes it to report the color of the pixel at the current mouse position to be reported in RGB format (i.e., as a list of three ints).

Output

list

A list of three ints corresponding to the RGB value of the pixel selected by using the mouse or in response to a list of x and y offsets will be sent out the suckah object's outlet.

See Also

Name Description
route
sprintf
zl
Tutorial 10: Chromakeying Tutorial 10: Chromakeying