Grid

Simple grid lines pattern with adjustable thickness and rotation

Props

PropTypeDefaultDescription
colorcolor#ffffffThe color of the grid lines
cellColorcolortransparentFill color of the cells (transparent = lines only). Pair with Variation for a tiled look.
cellsrange10Number of cells along the canvas height (cells stay square; the width fits as many as the aspect ratio allows)
thicknessrange1Thickness of grid lines (normalized, 0.0-1.0)
rotationrange0Rotation of the grid in degrees. At 45° this produces a crosshatch/diamond pattern.
softnessrange0Softness of the line edges (0 = crisp, 1 = very soft)
variationrange0Per-cell random lightening/darkening of the cell fill color
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"linearColor space for color interpolation

Usage

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