Docs.rs
effectengine-0.1.1
effectengine 0.1.1
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
louisescher
Dependencies
console_error_panic_hook ^0.1.7
normal
getrandom ^0.3.1
normal
image ^0.25.9
normal
rand ^0.9.2
normal
wasm-bindgen ^0.2.100
normal
Versions
43.48%
of the crate is documented
Go to latest version
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module quantize
libeffectengine
0.1.1
Module quantize
Module Items
Functions
In libeffectengine::
effects
libeffectengine
::
effects
Module
quantize
Copy item path
Source
Functions
§
effect
“Quantizes” an image by adjusting the colors to fit a given palette. Each pixel’s color is checked for the lowest perceived distance to the color palette, then that new color is written to the new image instead.