checkerboard
checkerboard(columns: none, rows: none, alignment: center + horizon, primary: white, secondary: silver, ..bodies)(source)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
columnsis an integer, create that many columns of width1fr. - If
columnsisnone, create as many columns of width1fras there are content blocks. - Otherwise assume that
columnsis an array of widths already, use that. - If
rowsis an integer, create that many rows of height1fr. - If
rowsisnone, create as many rows of height1fras needed given the number of content blocks and columns. - Otherwise assume that
rowsis 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