Wolfram Research

Function Repository Resource:

CheckerboardImage

Source Notebook

Create an image of a checkerboard pattern

Contributed by: Jon McLoone

ResourceFunction["CheckerboardImage"][checkersize,imagesize]

generates a checkerboard image.

Examples

Basic Examples

Generate a 100×100 image with 10-pixel squares:

In[1]:=
ResourceFunction["CheckerboardImage"][10, {100, 100}]
Out[1]=

Scope

If only the checker size is given, an image of 8×8 squares is generated:

In[2]:=
ResourceFunction["CheckerboardImage"][10]
Out[2]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information