Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/chalkpot_color/mod.ts>achromatopsiaColor

Color is a tool for creating RGB color by range and by HSL without leaving RGB space.
Latest
function achromatopsiaColor
import { achromatopsiaColor } from "https://deno.land/x/chalkpot_color@3.1.0/mod.ts";

Example

const red = new Color(false, 255, 0, 0);
console.log(achromatopsiaColor(red).components); // [76.24..., 76.24..., 76.24...]