@chayns/colors
Version:
JavaScript utility functions for the calculation of colors for chayns
12 lines (11 loc) • 483 B
TypeScript
import type { RGB1, RGB255, RGBA1, RGBA255 } from '../types/rgb';
import type { HSV, HSVA } from '../types/hsv';
import type { HSL, HSLA } from '../types/hsl';
declare type ColorObject = RGB1 | RGBA1 | RGB255 | RGBA255 | HSV | HSVA | HSL | HSLA;
/**
* Removes the transparency part of the color
* @param color
* @param hexTransparency
*/
export default function checkTransparency(color: string | ColorObject, hexTransparency?: boolean): (string | ColorObject | null);
export {};