view web/lib/onecolor.d.ts @ 2454:405abed9a45c

fix up asyncio-in-bg-thread sorcery
author drewp@bigasterisk.com
date Mon, 19 May 2025 21:25:32 -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;