2026-08-16 22:04:11 +03:00

7 lines
287 B
TypeScript

import { equal, throws } from "./assert.js";
import { categoricalColor, sequentialColor } from "../src/palette.js";
equal(categoricalColor("velocity"), categoricalColor("velocity"));
equal(sequentialColor(5, [0, 10]).startsWith("rgb("), true);
throws(() => sequentialColor(1, [1, 1]));