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

x/netsaur/packages/utilities/mod.ts>extractColors

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
function extractColors
import { extractColors } from "https://deno.land/x/netsaur@0.4.2/packages/utilities/mod.ts";

Extract colors from an image.

Parameters

image: Image
nColors: number

Returns

Pixel[]