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 color channel number in the range 0 to 3.
v
An integer pixel color value to be set for color channel 'z', in the range 0 to 255.

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)
      {
        // set all pixels white
        t3set(x, y, z, 255);
      }
    }
  }
  return true;
}

See Also

pset, tset, tget, t3get