MCPcopy
hub / github.com/omgovich/colord / roundHwba

Function roundHwba

src/colorModels/hwb.ts:13–18  ·  view source on GitHub ↗
(hwba: HwbaColor)

Source from the content-addressed store, hash-verified

11});
12
13export 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
20export const rgbaToHwba = (rgba: RgbaColor): HwbaColor => {
21 const { h } = rgbaToHsva(rgba);

Callers 2

rgbaToHwbaStringFunction · 0.90
hwbPluginFunction · 0.90

Calls 1

roundFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…