<?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="jit.roy" module="jit" category="Jitter Special FX">
	<digest>
		Convert image to halftone image
	</digest>
	<description>
		<o>jit.roy</o> is a halftone screen emulator. It takes an input matrix and splits it into a grid. Each element in the grid is then replaced by regions of a second matrix based on the mean value of each slot in the grid.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Jitter
		</metadata>
		<metadata name="tag">
			Jitter Special FX
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="matrix">
			<digest>
				in
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="matrix">
			<digest>
				in2
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="matrix">
			<digest>
				out
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="matrix">
			<digest>
				dumpout
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--MOP-->
	<mop matrixinputcount="2" matrixoutputcount="1">
		<matrixinput name="in2" planelink="0" typelink="0" dimlink="0" minplanecount="1" maxplanecount="32" mindimcount="1" maxdimcount="32" ioproc="adapt">
			<types>
				char long float32 float64
			</types>
		</matrixinput>
		<matrixoutput name="out" planelink="1" typelink="1" dimlink="1" minplanecount="1" maxplanecount="32" mindimcount="1" maxdimcount="32">
			<types>
				char long float32 float64
			</types>
		</matrixoutput>
	</mop>
	<!--MESSAGES-->
	<jittermethodlist>
		<jittermethod name="bang" />
		<jittermethod name="clear" />
		<jittermethod name="exportattrs" />
		<jittermethod name="exportsummary" />
		<jittermethod name="getattributes" />
		<jittermethod name="getstate" />
		<jittermethod name="jit_matrix" />
		<jittermethod name="importattrs" />
		<jittermethod name="outputmatrix" />
		<jittermethod name="summary" />
	</jittermethodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="shades" get="1" set="1" type="int" size="1">
			<digest>
				Number of shades in the halftone matrix
			</digest>
			<description>
				The number of shades present in the halftone matrix (i.e. the number of regions to split the matrix into as individual halftone images) (default = 11)
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Shades" />
			</attributelist>
		</attribute>
		<attribute name="x" get="1" set="1" type="int" size="1">
			<digest>
				Width of each halftone screen
			</digest>
			<description>
				The width of each halftone screen (default = 8)
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="X" />
			</attributelist>
		</attribute>
		<attribute name="y" get="1" set="1" type="int" size="1">
			<digest>
				Height of each halftone screen
			</digest>
			<description>
				The height of each halftone screen (default = 8)
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Y" />
			</attributelist>
		</attribute>
	</attributelist>
	<jitterattributelist>
		<jitterattribute name="outputmode" />
		<jitterattribute name="adapt" />
		<jitterattribute name="in2_name" />
		<jitterattribute name="in2_type" />
		<jitterattribute name="in2_dim" />
		<jitterattribute name="in2_planecount" />
		<jitterattribute name="out_name" />
		<jitterattribute name="type" />
		<jitterattribute name="dim" />
		<jitterattribute name="planecount" />
	</jitterattributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="jit.roy.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="jit.eclipse" />
		<seealso name="jit.hatch" />
	</seealsolist>
	<discussion>
		The second matrix (which defines the halftone screen) is a series of submatrices set next to one another along a horizontal axis. These matrices replace regions of the first matrix in ascending order.
	</discussion>
</c74object>
