Skip to main content

Crate effects_preview

Crate effects_preview 

Source
Expand description

Build the effects preview page.

Embeds the deformation engine โ€” compiled to WebAssembly โ€” into preview/index.html, and writes the result. The page calls it directly, so the mesh you watch bend in a browser is the one warp::mesh_part builds for a real window. A reimplementation in JavaScript would drift the first time either side changed, and the drift would be invisible because the page would still bend something plausible.

Driven by dev/preview, which builds the wasm first.

dev/preview && xdg-open crates/effects/preview/preview.html

The binary is effects-preview rather than preview; Cargo.toml says why.

Functionsยง

base64 ๐Ÿ”’
Base64, so the wasm can live inside the page.
main ๐Ÿ”’