HexGrid

Honeycomb hexagonal grid pattern

Props

PropTypeDefaultDescription
colorAcolor#000000Cell fill color
colorBcolor#ffffffGrid line color
cellsrange8Number of hexagons along the canvas height (the width fits as many as the aspect ratio allows)
thicknessrange1Thickness of the hex grid lines
rotationrange0Rotation of the grid in degrees
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>
  <HexGrid />
</Shader>