Skip to main content

checkerboard

Create a slide where the provided content blocks are displayed in a grid with a checkerboard color pattern.

You can configure the grid using the rows and columns keyword arguments (both default to none):

  • If columns is an integer, create that many columns of width 1fr.
  • If columns is none, create as many columns of width 1fr as there are content blocks.
  • Otherwise assume that columns is an array of widths already, use that.
  • If rows is an integer, create that many rows of height 1fr.
  • If rows is none, create as many rows of height 1fr as needed given the number of content blocks and columns.
  • Otherwise assume that rows is an array of heights already, use that.

That means that #checkerboard[...][...] stacks horizontally and #checkerboard(columns: 1)[...][...] stacks vertically.

Parameters

columns : int | array | none    default: none

The column specification. Default is none.

rows : int | array | none    default: none

The row specification. Default is none.

alignment : alignment    default: center + horizon

The alignment applied to the contents of each checkerboard cell. Default is center + horizon.

primary : color    default: white

The background color of odd cells. Default is white.

secondary : color    default: silver

The background color of even cells. Default is silver.

Returns: content