jc-color
Version:
A JavaScript tool for color compute and console print tool both for NodeJS and Browser.
6 lines (5 loc) • 345 B
TypeScript
import type { Color, RgbColorChannels } from "../types";
declare function mixColor(color1: Color, color2: Color, weight: number): RgbColorChannels;
declare function tintColor(color: Color, weight: number): RgbColorChannels;
declare function shadeColor(color: Color, weight: number): RgbColorChannels;
export { mixColor, tintColor, shadeColor };