Crates.io | auto-palette-wasm |
lib.rs | auto-palette-wasm |
version | 0.5.0 |
source | src |
created_at | 2024-05-19 06:16:47.19941 |
updated_at | 2024-08-13 14:51:11.783278 |
description | 🎨 A WebAssembly binding for auto-palette, allowing it to automatically extract color palettes from images. |
homepage | https://github.com/t28hub/auto-palette |
repository | https://github.com/t28hub/auto-palette |
max_upload_size | |
id | 1244715 |
size | 21,727 |
auto-palette-wasm
A WebAssembly binding for
auto-palette
, allowing it to automatically extract color palettes from images.
cargo nextest run --tests --package auto-palette-wasm
Run wasm-pack tests in headless mode using Chrome:
wasm-pack test --headless --chrome ./crates/auto-palette-wasm
Run wasm-pack tests in headless mode using Firefox:
wasm-pack test --headless --firefox ./crates/auto-palette-wasm
[!TIP] Before running the tests, make sure to install the latest version of Chrome Driver or Gecko Driver. If you're using macOS, you can install the drivers using Homebrew:
brew install chromedriver brew install geckodriver
wasm-pack build ./crates/auto-palette-wasm --release --target web