Vizard 8 » Command Index » Vizard modules » spi » <spi>.chanorigin
8.1

<spi>.chanorigin

Set the origin from which the texture is both drawn and read by SPI

<spi>.chanorigin(  
channel  
x  
y  
)  
channel
A single SPI channel token
x
X axis value
y
Y axis value

Remarks

This function sets the origin on the drawing surface used by SPI for the given channel. By default the origin
is always 0, 0 for every new channel. In some cases where the textures can be tiled on the drawing surface
such that only one clear will be necessary for each frame, which will require the developer to set the origin
of each channels texture using this call.

Return Value

None