UNPKG

fui-fancyui

Version:
13 lines (12 loc) 360 B
import { default as Color } from 'color'; type ColorType = ReturnType<typeof Color>; export declare const positionToColor: (hue: number, clientX: number, clientY: number, rect: DOMRect) => { h: number; s: number; v: number; }; export declare const colorToPosition: (color: ColorType, rect: DOMRect) => { x: number; y: number; }; export {};