@nvl/egal
v1.0.3
Published
Reparametrization of OkLCh/HCT to simplify uniformity in color saturation.
Maintainers
Readme
Getting Started
Note: This package is ESM-only.
Installation
pnpm add @nvl/egal # If using PNPM
bun add @nvl/egal # If using Bun
npm add @nvl/egal # If using NPM
yarn add @nvl/egal # If using Yarn
deno add jsr:@nvl/egal # If using DenoUsage
For example:
import { egal } from '@nvl/egal';
const hues = [0, 60, 120, 180, 240, 300];
const lightnesses = [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1];
const palette = hues.map((hue) =>
lightnesses.map((lightness) => egal(lightness, 1, hue, { hues }))
);
console.log(palette);