/** * DotMatrix patterns — delay-field generators that scale any 3x3 * pattern from 3-pixel-grid (MetaHeavies) to arbitrary `rows × cols`. * * Each generator returns a flat array of length `rows × cols` indexed * by physical position (`r * cols + c`). Values are delays in ms that * tell the cycle engine *when* each cell flips on/off relative to the * start of a phase. * * Reference: https://github.com/MetaHeavies/3-pixel-grid * * @module @mks2508/mks-ui/react/primitives/DotMatrix */ /** Available built-in patterns. */ export type DotMatrixPattern = 'wave-lr' | 'wave-rl' | 'wave-tb' | 'wave-bt' | 'spiral-cw' | 'corners-first' | 'center-out' | 'diagonal-tl' | 'snake' | 'snake-up' | 'cross' | 'checkerboard' | 'rain' | 'pinwheel' | 'converge' | 'zigzag'; /** Catalogue of all pattern names. Handy for UIs / debug labs. */ export declare const DOT_MATRIX_PATTERNS: readonly DotMatrixPattern[]; /** * Build the delay array for `pattern` at `rows × cols`, scaled by `step` * (ms between successive cells in simple sweep patterns). * * Always returns an array of exact length `rows * cols`. * * @example * ```ts * const delays = buildDelays('wave-lr', 6, 18, 60); * // delays[0]=0, delays[1]=60, ..., delays[17]=1020 * // delays[18]=0, delays[19]=60, ... (all rows identical for wave-lr) * ``` */ export declare function buildDelays(pattern: DotMatrixPattern, rows: number, cols: number, step?: number): number[]; //# sourceMappingURL=patterns.d.ts.map