vvcaw / fourier-svg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fourier-svg

Youtube video

Illustrating how to approximate svg files using the discrete fourier transform. This is built using nannou, an awesome creative coding framework. Moving the mouse on the x-axis from left to right determines the amount of epicycles being drawn (the resolution). image

How to run

Make sure Rust and Cargo are installed on your system and all the tools for nannou are installed.

git clone https://github.com/vvcaw/fourier-svg.git --recursive
cd fourier-svg

Run the project

cargo run --release -- -f fourier.svg

or build the executable.

cargo build --release
./target/release/fourier-svg -f fourier.svg

Options

Use the -h flag to get help concerning all options.

fourier-svg 0.1.0

USAGE:
    fourier-svg [OPTIONS] --file <file>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --distance <distance>    Distance between points sampled from svg [default: 5.0]
    -f, --file <file>            Input svg file

Contributing

In case you find bugs or want to improve the codebase, pull requests are welcome.

About

License:MIT License


Languages

Language:Rust 100.0%