(v: number)
| 32 | const DEFAULT_TARGET_FORMAT: GPUTextureFormat = 'bgra8unorm'; |
| 33 | |
| 34 | const clamp01 = (v: number): number => Math.min(1, Math.max(0, v)); |
| 35 | const parseSeriesColorToRgba01 = (color: string): Rgba => |
| 36 | parseCssColorToRgba01(color) ?? ([0, 0, 0, 1] as const); |
| 37 |