Skip to main content
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Commercial
Deno for Enterprise
Enterprise support for runtime projects
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Docs
Manual
API Reference
Deno Deploy
Deno KV
Deno by Example
Modules
Current path
deno.land/x
Standard Library
Node.js & npm
JSR
Blog
Search…
⌘K
Module
x
/
monke
/
src
/
pixels.ts
Color quantization and dithering in TypeScript.
retraigo/monke
Version
v1.0.2
v1.0.1
v1.0.0
v0.0.4
v0.0.3
v0.0.1
Go to Latest
Menu
mod.ts
(default module)
c
Color
c
ColorHistogram
c
Image
f
floydSteinbergDither
f
getHistogram
f
getPixels
f
getProminentColor
f
midPointDither
f
monochromeDither
f
noDither
f
quantizeByMedianCut
f
quantizeByPopularity
f
quickDither
f
quickTwoRowDither
f
reducePalette
f
twoRowSierraDither
dither.ts
f
floydSteinbergDither
f
midPointDither
f
monochromeDither
f
noDither
f
quickDither
f
quickTwoRowDither
f
twoRowSierraDither
histogram.ts
c
ColorHistogram
f
getHistogram
image.ts
c
Image
I
DitherOptions
T
BlurType
pixels.ts
f
getPixels
quantize.ts
I
ColorRange
f
getAverageColor
f
getColorRange
f
getProminentColor
f
medianCut
f
quantizeByMedianCut
f
quantizeByPopularity
f
reducePalette
f
vboxSize
f
vboxVolume
import
*
as
monke
from
"https://deno.land/x/monke@v0.0.4/src/pixels.ts"
;
Functions
f
getPixels