Toggle Sidebar B
Light & dark mode D

Grid

Simple grid lines pattern with adjustable thickness and rotation

Simple grid lines pattern with adjustable thickness and rotation

Props

PropTypeDefaultDescription
colorcolor#ffffffThe color of the grid lines
cellsrange10Number of cells along the shortest canvas edge (creates square cells)
thicknessrange1Thickness of grid lines (normalized, 0.0-1.0)
rotationrange0Rotation of the grid in degrees. At 45° this produces a crosshatch/diamond pattern.

Usage

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