React Usage
Vanilla JavaScript Usage
Parameters
Background color in hex format.
Shape fill color in hex format.
Shape stroke color in hex format.
Base size of each shape in pixels. Range: 1 to 100.
Pattern horizontal spacing in pixels. Range: 2 to 500.
Pattern vertical spacing in pixels. Range: 2 to 500.
Outline stroke width in pixels. Range: 0 to 50.
Random variation in shape size. 0 creates uniform sizes, higher values add randomness up to base size. Range: 0 to 1.
Random variation in shape opacity. 0 makes all shapes opaque, higher values add semi-transparency. Range: 0 to 1.
Shape type for the dots:
circle: Round dotsdiamond: 45-degree rotated squaressquare: Square dotstriangle: Triangular dots
Common Sizing Parameters
Overall zoom level of the graphics. Range: 0.01 to 4.
Rotation angle in degrees. Range: 0 to 360.
How to fit the shader into the canvas dimensions.
Horizontal offset of the graphics center. Range: -1 to 1.
Vertical offset of the graphics center. Range: -1 to 1.
Presets
The Dot Grid shader comes with several built-in presets:- Default: White circles with orange stroke
- Triangles: Gray outlined triangles
- Tree line: Random sized green circles in vertical rows
- Wallpaper: Gold outlined diamonds on green
Notes
- This shader is static and does not animate
- Supports higher resolution rendering (up to 6016×3384 pixels)
- Use
sizeRangeandopacityRangeto create organic, hand-drawn effects
