UNPKG

modern-canvas

Version:

A JavaScript WebGL rendering engine. only the ESM.

5 lines (4 loc) 292 B
import { ColorMatrix } from '../core'; export type CSSFilterKey = 'hue-rotate' | 'saturate' | 'brightness' | 'contrast' | 'invert' | 'sepia' | 'opacity' | 'grayscale'; export type CSSFilters = Record<CSSFilterKey, number>; export declare function parseCssFilter(filter: string): ColorMatrix;