import { Color } from "https://deno.land/x/monke@v1.0.2/mod.ts";
General class for RGBA colors
Properties
Get the average of all colors
Can also be used instead of grayscale
using
const color = new Color(r, g, b, a);
const avg = color.average;
const grayscaleColor = new Color(avg, avg, avg, a);
Static Methods
toHex(n: number): string