<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="suckah" module="max" category="U/I">
	<digest>
		Get a pixel from the display
	</digest>
	<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.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Coordinates in
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				RGBA list Out (0. -1.)
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<palette category="Interface" action="suckah" pic="suckah.svg" />
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="list">
			<arglist>
				<arg name="screen-x" optional="0" type="int" />
				<arg name="screen-y" optional="0" type="int" />
			</arglist>
			<digest>
				Output colors from screen coordinates
			</digest>
			<description>
				A list of two integers specifying x and y offset values from the upper left corner of the screen will cause the <o>suckah</o> object to report the color at the specified screen location in RGB format.
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Report a color beneath the object
			</digest>
			<description>
				Clicking on the <o>suckah</o> 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).
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="boundmode" get="1" set="1" type="int" size="1">
			<digest>
				Constrain Output to Object Bounds
			</digest>
			<description>
				When enabled, the <o>suckah</o> object will only output color values within the bounds of the object's box. Coordinates outside of the object's bounds will be ignored.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Constrain Output to Object Bounds" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="compatibility" get="1" set="1" type="int" size="1">
			<digest>
				Output color format
			</digest>
			<description>
				Toggles the output of the <o>suckah</o> object in old-style integer values in the range 0-255 (0) or 0.-1.0 floating-point values (1).
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Output Old Style 0-255 Values" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="outputalpha" get="1" set="1" type="int" size="1">
			<digest>
				Alpha output flag
			</digest>
			<description>
				Toggles the output of 3-element RGB lists (0) or 4-element RGBA lists that include alpha channel values (1).
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Output Alpha Value" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="suckah.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="route" />
		<seealso name="sprintf" />
		<seealso name="zl" />
		<seealso name="jitterchapter10" module="jit" type="tutorial" />
	</seealsolist>
	<discussion>
		<br />
		<br />
		Note -- while [cmd]-clicking on the <o>suckah</o> when the patch is unlocked, the <o>suckah</o> sees itself.
	</discussion>
	<misc name="Output">
		<entry name="list">
			<description>
				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 <o>suckah</o> object's outlet.
			</description>
		</entry>
	</misc>
</c74object>
