UNPKG

@thi.ng/color

Version:

Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets

14 lines 419 B
import type { Hue } from "./api.js"; /** * Returns the {@link Hue} constant of the closest of 12 defined hues. * * @param h - normalized hue */ export declare const closestHue: (h: number) => Hue; /** * Returns the {@link Hue} constant of the closest primary or secondary hue. * * @param h - normalized hue */ export declare const closestPrimaryHue: (h: number) => Hue; //# sourceMappingURL=closest-hue.d.ts.map