A static, anti-aliased grid pattern rendered in one of four shape types: circle, diamond, square, or triangle. Each shape supports a fill color, stroke color, and background color, along with optional random variation in size and opacity per cell.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paper-design/shaders/llms.txt
Use this file to discover all available pages before exploring further.
Usage
- React
- Vanilla JS
Props
Background color of the grid.
Fill color of each shape.
Stroke/outline color of each shape.
Base size (radius) of each shape in pixels. Range:
1 to 100.Horizontal spacing between shape centers in pixels. Range:
2 to 500.Vertical spacing between shape centers in pixels. Range:
2 to 500.Outline stroke width in pixels. Range:
0 to 50.Random variation in shape size per cell.
0 = uniform. Range: 0 to 1.Random variation in shape opacity per cell.
0 = fully opaque. Range: 0 to 1.Shape type for each grid cell. One of
"circle", "diamond", "square", or "triangle".Shape options
TheDotGridShapes enum provides the available shape values:
| Key | Value | Description |
|---|---|---|
circle | 0 | Circular dots |
diamond | 1 | Diamond (rotated square) |
square | 2 | Axis-aligned square |
triangle | 3 | Equilateral triangle |
Presets
| Name | Description |
|---|---|
Default | White circles with orange stroke on black |
Triangles | Outlined grey triangles on white |
Tree line | Variable-sized circles suggesting a treeline |
Wallpaper | Gold-outlined diamonds on dark green |
Sizing
This shader usesShaderSizingParams. See Sizing and fit for fit, scale, rotation, offsetX, offsetY, originX, originY, worldWidth, and worldHeight props.