This is the implementation of An introduction to Shader Art Coding in Rust using webgpu.
You need:
- Rust compiler and Cargo package manager
- One of the supported backends by wgpu crate.
$ git clone https://github.com/pythops/shader-art-rs
$ cd shader-art-rs/
$ cargo run
$ cargo run -- --save animation.gif
You can speed up the animation or the generated gif.
$ cargo run -- --speed <Speed factor: u8>
$ cargo run -- --save animation.gif --resolution <widthxheight>
the default resolution is 512x512
Thanks to @sorth for the amazing tutorial learn-wgpu
AGPLv3