(dotCount: number)
| 15 | |
| 16 | // Function to generate frame with specific dot density |
| 17 | const generateDensityFrame = (dotCount: number): string => { |
| 18 | const chars = BRAILLE_BY_DENSITY[Math.min(8, Math.max(0, dotCount))]; |
| 19 | return Array.from( |
| 20 | { length: 3 }, |
| 21 | () => chars[Math.floor(Math.random() * chars.length)], |
| 22 | ).join(""); |
| 23 | }; |
| 24 | |
| 25 | // Helper function to generate eased static fade animation with full timing control |
| 26 | const generateEasedStaticFade = ( |
no test coverage detected