UNPKG

color-engine

Version:

Creates color gradients from a few colors and converts RBG colors to HEX and vice versa.

3 lines (2 loc) 215 B
export declare function map(n: number, start1: number, stop1: number, start2: number, stop2: number, withinBounds?: boolean): number; export declare function constrain(n: number, low: number, high: number): number;