Skip to main content
Module

x/monke/mod.ts>ColorHistogram

Get colors from image
Go to Latest
class ColorHistogram
import { ColorHistogram } from "https://deno.land/x/monke@v0.0.3/mod.ts";

Histogram of colors with reduced space Effectively quantizes the image into 32768 colors

Constructors

new
ColorHistogram()

Properties

readonly
raw: Uint32Array

Methods

add(color: Color, amount: number): number
get(color: Color): number