ImageTools
Checkerboard
create a checkerboard image
Calling Sequence
Parameters
Options
Description
Examples
Checkerboard( n, height, width, opts )
n
-
(optional) posint; size of each square
height
(optional) posint; height of board, in squares
width
(optional) posint; width of board, in squares
opts
(optional) equation(s) of the form option = value; specify options for the Checkerboard command
foreground = realcons
Specifies the shade of gray of the foreground color. The default is 1.0 (white).
background = realcons
Specifies the shade of gray of the background color. The default is 0.0 (black).
Other options are passed to Create.
The Checkerboard command returns an image of a checkerboard, that is, a grid of alternating light and dark squares.
The optional parameter n specifies the length of each square, in pixels. The default is 20.
The optional parameters height and width specify the height and width of the board, in squares, respectively. The default for height is 8. The default for width is height.
with⁡ImageTools:
Embed⁡Checkerboard⁡
Embed⁡Checkerboard⁡50,3,4,foreground=0.7,background=0.2
See Also
ImageTools[Create]
Download Help Document