(laba: LchaColor)
| 16 | }); |
| 17 | |
| 18 | export const roundLcha = (laba: LchaColor): LchaColor => ({ |
| 19 | l: round(laba.l, 2), |
| 20 | c: round(laba.c, 2), |
| 21 | h: round(laba.h, 2), |
| 22 | a: round(laba.a, ALPHA_PRECISION), |
| 23 | }); |
| 24 | |
| 25 | export const parseLcha = ({ l, c, h, a = 1 }: InputObject): RgbaColor | null => { |
| 26 | if (!isPresent(l) || !isPresent(c) || !isPresent(h)) return null; |
no test coverage detected
searching dependent graphs…