Documentation

Grid

Simple grid lines pattern with adjustable thickness and rotation

Props

colorstring
Default:#ffffff
The color of the grid lines
cellsnumber
Default:10
Number of cells along the shortest canvas edge (creates square cells)
thicknessnumber
Default:1
Thickness of grid lines (normalized, 0.0-1.0)
rotationnumber
Default:0
Rotation of the grid in degrees. At 45° this produces a crosshatch/diamond pattern.

Usage

<Shader>
  <Grid
    color="#ffffff"
  />
</Shader>