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 of size imagesize consisting of checkersize-pixel squares.

ResourceFunction["CheckerboardImage"][checkersize]

generates an an 8×8 checkerboard image consisting of checkersize-pixel squares.

Examples

Basic Examples (1) 

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

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

Scope (1) 

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

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

Publisher

Jon McLoone

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 06 February 2019

License Information