@fimbul-works/vec-color
Version:
A comprehensive, type-safe color manipulation library for TypeScript that provides a wide range of color space conversions, blending operations, and accessibility utilities.
14 lines (13 loc) • 542 B
TypeScript
import { Vec3, Vec4 } from "@fimbul-works/vec";
/**
* Converts RGB color values to CMYK color space
* @param rgb - Vec3 containing RGB values (each channel from 0 to 1)
* @returns Vec4 containing CMYK values (each channel from 0 to 1)
*/
export declare function rgbToCMYK(rgb: Vec3): Vec4;
/**
* Converts CMYK color values to RGB color space
* @param cmyk - Vec4 containing CMYK values (each channel from 0 to 1)
* @returns Vec3 containing RGB values (each channel from 0 to 1)
*/
export declare function cmykToRGB(cmyk: Vec4): Vec3;