(hwba: HwbaColor)
| 11 | }); |
| 12 | |
| 13 | export const roundHwba = (hwba: HwbaColor): HwbaColor => ({ |
| 14 | h: round(hwba.h), |
| 15 | w: round(hwba.w), |
| 16 | b: round(hwba.b), |
| 17 | a: round(hwba.a, ALPHA_PRECISION), |
| 18 | }); |
| 19 | |
| 20 | export const rgbaToHwba = (rgba: RgbaColor): HwbaColor => { |
| 21 | const { h } = rgbaToHsva(rgba); |
no test coverage detected
searching dependent graphs…