histogram(image) → Uint32Array
The histogram of an image's luminance: 256 counts
The reference the reference target wrote from the example crate's Rust declarations
(examples/filters/docs/api.md), with no edit by hand.
histogram(image) → Uint32ArrayThe histogram of an image's luminance: 256 counts
BlurA box blur, applied to RGBA pixels in place
new Blur(options), its options BlurOptions:
| Option | Type | Default | |
|---|---|---|---|
radius |
number |
2 |
Its radius, pixels |
edge |
Edge |
'clamp' |
How it reads past the edges |
Properties:
radiusIts radius, pixelsMethods:
apply(image, width, height) → voidBlurs an image in placeapplyLater(image, width, height) → Promise<Uint8Array>Blurs an image's copy once the browser is idleapplyWhere(image, width, keep) → voidBlurs the rows a predicate keepsEvents (on(type, listener), returning what stops it):
progress (number)The share of the image blurred, 0 to 1BlurOptionsA blur's options
| Option | Type | Default | |
|---|---|---|---|
radius |
number |
2 |
Its radius, pixels |
edge |
Edge |
'clamp' |
How it reads past the edges |
Edge'clamp'The nearest pixel inside'wrap'The pixel on the other side