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

x/chalkpot_color/color_effects/mod.ts>summarizeColors

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

Example

const red = new Color(false, 128, 0, 0);
const blue = new Color(false, 0, 0, 128);

const purple = summarizeColors(red, blue);
console.log(purple.components); // [128, 0, 128]

Parameters

first: Color
second: Color

Returns

Color