UNPKG

298 BTypeScriptView Raw
1import type { IColor, IRGB } from './interfaces';
2/**
3 * Gets a color with a single RGBA component updated to a new value.
4 * Does not modify the original `color`. Alpha defaults to 100 if not set.
5 */
6export declare function updateRGB(color: IColor, component: keyof IRGB, value: number): IColor;