Checkerboard

Classic checkerboard pattern with two alternating colors

Props

PropTypeDefaultDescription
colorAcolor#ccccccFirst color of the checkerboard pattern
colorBcolor#999999Second color of the checkerboard pattern
cellsrange8Number of cells along the canvas height (creates square cells). Switch the unit to px in the editor to set an absolute cell size instead.
softnessrange0Smoothness of the transition between colors (0 = hard edges, 1 = very soft)
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"linearColor space for color interpolation

Usage

vue
<Shader>
  <Checkerboard />
</Shader>