/perspectives

Create a warped text with Rust, WASM and web-sys

Primary LanguageRustOtherNOASSERTION

A question of the perspective

Create a warped text interactively in the browser. Watch your screen at a very flat angle to read the text.

Powered by Rust, wasm-bindgen and the creates image and imageproc. All interaction with the DOM is done with wasm-bindgen and specifically web-sys. The generation of the warped image is triggered automatically when the input box changes. We delay the calculation a little with a debounce pattern to avoid overloading the end device.

Live-Demo

You can also add the text you want to have warped as search params: Example with search params

Example of warped text