(hex, alpha)
| 21 | } |
| 22 | |
| 23 | export function HexToRGBA(hex, alpha) { |
| 24 | const rgb = HexToRGB(hex); |
| 25 | return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`; |
| 26 | } |
| 27 | |
| 28 | function format2Hex(val) { |
| 29 | const hex = val.toString(16); |
no test coverage detected
searching dependent graphs…