(color: RGBA, value: number)
| 92 | export const transparent = RGBA.fromValues(0, 0, 0, 0) |
| 93 | |
| 94 | function alpha(color: RGBA, value: number): RGBA { |
| 95 | return RGBA.fromValues(color.r, color.g, color.b, Math.max(0, Math.min(1, value))) |
| 96 | } |
| 97 | |
| 98 | function rgba(hex: string, value?: number): RGBA { |
| 99 | const color = RGBA.fromHex(hex) |
no outgoing calls
no test coverage detected