Skip to main content
Module

x/colors/mod.ts>quantizeByMedianCut

Color conversion and stuff in TypeScript
Go to Latest
function quantizeByMedianCut
import { quantizeByMedianCut } from "https://deno.land/x/colors@v1.2.1/mod.ts";

Get a reduced color palette using Modified Median Cut.

Parameters

palette: Color[]

An array of colors to extract palette from

extractCount: number

Number of colors to extract