view web/lib/onecolor.d.ts @ 2420:d5750b2aaa9e

minor cam edits
author drewp@bigasterisk.com
date Tue, 21 May 2024 14:50:01 -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;