import { invertColor } from "https://deno.land/x/chalkpot_color@3.1.0/mod.ts";
Example
const black = new Color(false, 0, 0, 0);
const white = invertColor(black);
console.log(white.components); // [255, 255, 255]
Parameters
color: Color
x/chalkpot_color/mod.ts>invertColor
import { invertColor } from "https://deno.land/x/chalkpot_color@3.1.0/mod.ts";
const black = new Color(false, 0, 0, 0);
const white = invertColor(black);
console.log(white.components); // [255, 255, 255]