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

x/chalkpot_color/color_effects/mod.ts>protanomalyColor

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

Example

const red = new Color(false, 255, 0, 0);
console.log(protanomalyColor(red).components); // [208.33..., 84.91..., 0]

Parameters

color: Color

Returns

Color