(color: RGBColorType)
| 25 | |
| 26 | // Convert RGB object to rgb() color string for Text component |
| 27 | export function toRGBColor(color: RGBColorType): RGBColorString { |
| 28 | return `rgb(${color.r},${color.g},${color.b})` |
| 29 | } |
| 30 | |
| 31 | // HSL hue (0-360) to RGB, using voice-mode waveform parameters (s=0.7, l=0.6). |
| 32 | export function hueToRgb(hue: number): RGBColorType { |
no outgoing calls
no test coverage detected