React Usage
Vanilla JavaScript Usage
Parameters
Background color in hex format.
Array of up to 10 base colors in hex format.
Dot radius relative to cell size. Range: 0 to 1.
Random variation in shape size. 0 creates uniform sizes, higher values add randomness up to base size. Range: 0 to 1.
Maximum orbit distance around cell center. Range: 0 to 1.
Number of extra colors between base colors. 1 equals N colors, 2 equals 2×N colors, etc. Range: 1 to 4.
Animation speed multiplier. Set to 0 to pause animation.
Specific frame to display when speed is 0.
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 Orbit shader comes with several built-in presets:- Default: Warm orange to black gradient dots
- Shine: Small white, blue, and yellow dots
- Bubbles: Single color gray bubbles with size variation
- Hallucinatory: Black dots on yellow with rapid motion
