DotGrid

Grid of dots with optional twinkling animation

Props

PropTypeDefaultDescription
colorcolor#ffffffThe color of the dot
densityrange30The number of dots along the canvas height (the width fits as many as the aspect ratio allows)
dotSizerange0.3The size of each dot, zero (0) being invisible, one (1) filled the grid with no gaps
offsetrange0Horizontal stagger of alternating rows (0.5 = classic polka-dot brick offset)
speedrange0Animates the rows drifting horizontally (0 = static)
speedVariancerange0.3Per-row random speed variance for irregular drifting motion
twinklerange0Intensity of the twinkle effect (0 = off, 1 = full twinkle)

Usage

vue
<Shader>
  <DotGrid
    color="#ffffff"
  />
</Shader>