UNPKG

@thi.ng/color

Version:

Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets

13 lines 537 B
import type { MaybeColor } from "./api.js"; /** * Multi-method to compute relative luminance from any supported input color * format. * * @remarks * For many color spaces, luminance-related information is readily available and * will simply result in looking up the relevant channel value. For others, * unless a direct implementation is available, colors will first be converted * to linear RGB. */ export declare const luminance: import("@thi.ng/defmulti").MultiFn1<MaybeColor, number>; //# sourceMappingURL=luminance.d.ts.map