(p: number)
| 50 | |
| 51 | /** Wrap a phase value into [0,1) so callers can advance it without bounds-checking. */ |
| 52 | export function wrapPhase(p: number): number { |
| 53 | const m = p % 1; |
| 54 | return m < 0 ? m + 1 : m; |
| 55 | } |
| 56 | |
| 57 | /** Aurora palette — teal → cyan → blue → indigo → violet → pink. Tasteful and vivid. */ |
| 58 | export const AURORA: RGB[] = [ |
no outgoing calls
no test coverage detected