| 4 | import React, { useEffect, useRef } from "react"; |
| 5 | |
| 6 | interface PlasmaProps { |
| 7 | color?: string; |
| 8 | speed?: number; |
| 9 | direction?: "forward" | "reverse" | "pingpong"; |
| 10 | scale?: number; |
| 11 | opacity?: number; |
| 12 | mouseInteractive?: boolean; |
| 13 | } |
| 14 | |
| 15 | const hexToRgb = (hex: string): [number, number, number] => { |
| 16 | const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); |
nothing calls this directly
no outgoing calls
no test coverage detected