UNPKG

@thi.ng/color

Version:

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

34 lines 1.06 kB
import type { NumericArray } from "@thi.ng/api"; import type { IRandom } from "@thi.ng/random"; import type { Color, ColorFactory, ReadonlyColor, TypedColor } from "../api.js"; export declare class HSI implements TypedColor<HSI> { buf: NumericArray; offset: number; stride: number; h: number; s: number; i: number; alpha: number; [id: number]: number; readonly mode: "hsi"; readonly length: 4; readonly range: [ReadonlyColor, ReadonlyColor]; readonly xyz: [number, number, number]; [Symbol.iterator](): Iterator<number, any, undefined>; clamp(): this; copy(): HSI; copyView(): HSI; deref(): Color; empty(): HSI; eqDelta(o: HSI, eps?: number): boolean; randomize(rnd?: IRandom): this; set(src: ReadonlyColor): this; toJSON(): number[]; } /** * @remarks * Note: As with other hue-based color modes in this package, the hue is stored * normalized (in `[0,1]` interval) and NOT as degrees. */ export declare const hsi: ColorFactory<HSI>; //# sourceMappingURL=hsi.d.ts.map