PATTERN_NAMES constant.
Solo Patterns
Single dot animations for minimal, focused loaders.solo-center
Illuminates only the center dot of the grid.solo-tl
Illuminates only the top-left corner dot.solo-br
Illuminates only the bottom-right corner dot.Line Patterns
Straight line formations across the grid.Horizontal Lines
- line-h-top: Illuminates all dots in the top row
- line-h-mid: Illuminates all dots in the middle row
- line-h-bot: Illuminates all dots in the bottom row
Vertical Lines
- line-v-left: Illuminates all dots in the left column
- line-v-mid: Illuminates all dots in the middle column
- line-v-right: Illuminates all dots in the right column
Diagonal Lines
- line-diag-1: Illuminates dots from top-left to bottom-right
- line-diag-2: Illuminates dots from top-right to bottom-left
Corner Patterns
Patterns focusing on the four corners of the grid.corners-only
Sequentially animates through each corner (top-left, top-right, bottom-right, bottom-left).This pattern uses sequence mode - corners light up one at a time.
corners-sync
Illuminates all four corners simultaneously.This is a sync pattern defined in
SYNC_PATTERNS - all corners pulse together without wave delays.Shape Patterns
Complex geometric shapes and forms.L-Shapes
- l-tl: L-shape anchored at top-left (top row + left column)
- l-tr: L-shape anchored at top-right (top row + right column)
- l-bl: L-shape anchored at bottom-left (bottom row + left column)
- l-br: L-shape anchored at bottom-right (bottom row + right column)
T-Shapes
- t-top: T-shape with top row + middle column
- t-bot: T-shape with bottom row + middle column
- t-left: T-shape with left column + middle row
- t-right: T-shape with right column + middle row
Plus Pattern
plus-hollow
Illuminates the four dots at the edges (top, right, bottom, left) - creating a hollow plus sign. Animates sequentially through each position.Duo Patterns
Two-dot patterns for minimal animations.- duo-h: Two dots at horizontal extremes of middle row
- duo-v: Two dots at vertical extremes of middle column
- duo-diag: Two dots at opposite corners (top-left and bottom-right)
Frame Patterns
Perimeter-based patterns that outline the grid.frame
Animates around the perimeter in order: top → right → bottom → left.frame-sync
Illuminates the entire perimeter simultaneously.This is a sync pattern defined in
SYNC_PATTERNS - all perimeter dots pulse together.Wave Patterns
Directional wave animations across all dots.- wave-lr: Wave propagates left to right
- wave-rl: Wave propagates right to left
- wave-tb: Wave propagates top to bottom
- wave-bt: Wave propagates bottom to top
WAVE_DIRECTIONS constant to map to specific wave directions:
Sparse Patterns
Minimal patterns with strategically placed dots.- sparse-1: Diagonal from top-left to bottom-right
- sparse-2: Three specific dots (top-right, middle-left, bottom-middle)
- sparse-3: Three specific dots (top-middle, middle-right, bottom-left)
Special Patterns
spiral
Animates in a spiral pattern around the perimeter layers. The pattern consists of 4 frames that animate sequentially.The spiral direction reverses when
direction is set to rtl or btt.all
Illuminates all dots in the grid simultaneously.Pattern Implementation
All patterns are defined intypes.ts: