@thi.ng/color
Version:
Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets
17 lines • 417 B
TypeScript
/**
* Maps a single linear RGB channel value to sRGB.
*
* https://en.wikipedia.org/wiki/SRGB
*
* @param x - channel value
*/
export declare const linearSrgb: (x: number) => number;
/**
* Maps a single linear sRGB channel value to linear RGB.
*
* https://en.wikipedia.org/wiki/SRGB
*
* @param x - channel value
*/
export declare const srgbLinear: (x: number) => number;
//# sourceMappingURL=linear.d.ts.map