t3set

Syntax

void t3set(int x, int y, int z, int v)

Arguments

x
An integer pixel x-coordinate in the third tile buffer.
y
An integer pixel y-coordinate in the third tile buffer.
z
An integer channel number in the range 0 to 3.
v
An integer value to be set for channel 'z', in the range 0 to 255.

Return

None

Description

This function sets the value of one channel for a pixel in the third tile buffer; the pixel is at coordinates [x,y], and the channel to be set is given by 'z' (0 = red, 1 = green, 2 = blue, and 3 = alpha).

Example

%ffp

ForEveryTile:
{
	for (y=y_start; y<y_end; ++y)
	{
		for (x=x_start; x<x_end; ++x)
		{
			for (z=0; z<Z; ++z)
			{
				t3set(x, y, z, 255);  // set all pixels to white!
			}
		}
	}
	return true;
}

Also see

pset,tset,tget,t3get

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.