Skip to main content

Crate preview

Crate preview 

Source
Expand description

Build the animation preview page.

Embeds two engines โ€” the animation curves and the window arrangements, both compiled to WebAssembly โ€” into preview/index.html, and writes the result. The page calls them directly, so what is tuned in a browser is the code that moves and arranges real windows. A reimplementation in JavaScript would drift the first time either side changed, and the drift would be invisible because the page would still look plausible.

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

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

Functionsยง

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