view web/lib/onecolor.d.ts @ 2442:a8281a147cb6

checkpoint show data
author drewp@bigasterisk.com
date Fri, 31 May 2024 11:52:54 -0700
parents 4556eebe5d73
children
line wrap: on
line source

type ColorFormat = "hex" | "rgb" | "hsl" | "hsv";
interface Color {
  clone(): this;
  toString(format?: ColorFormat): string;
  toJSON(): string;
  value(): number;
  value(v: number): this;
  hex(): string;
}

declare function color(value: any): Color;

export = color;