Checker
Function
This function generates a checkerboard within the area of the width
and height of the image. It is handy to test Warps on, or just
to split a screen in half. If you want to make a specific number of tiles
per row or column (ie, 4x4), just divide the width and the height by the
number you want, ie, height/4 gives you 4 rows.
Parameters
|
Type
|
Defaults
|
Function
|
width |
int
|
defaultHeight |
width of the image |
height |
int
|
defaultWidth |
height of the image |
bytes |
int
|
1 |
bit depth, 1, 2, or 4 bytes/channel |
xSize |
int
|
32 |
x-resolution of a checker |
ySize |
int
|
xSize |
y-resolution of a checker |
Synopsis
image Checker(
int width,
int height,
int bytes,
int xSize,
int ySize
);
Script
image = Checker( width, height, bytes,
xSize, ySize
);
Command Line
shake -checker width height bytes xSize ySize
Examples
shake -checker
shake -check 300 200 1 150 100
shake -check 300 200 1 150 "Linear(0,1@1,200@20)" -t 1-20
See Also
Rand, RGrad,
Ramp, Color,
Black, ColorWheel
|