Use fourier transform to draw epicycles with your drawings.
Project description
Use fourier transform to draw epicycles with your drawings.
Draw a picture or sample one, press space, then watch an epic simulation of epicycles being drawned identically as your picture. Thanks the the fourier transform your drawing will be reproduced in a real-time simulation only using epicycles.
Install
#Clone the repository
git clone git@github.com:MarcPartensky/Fourier.git
cd Fourier
#Install requirements
pip install -r requirements.txt
#Go to source folder [Do NOT forget this step]
cd src
Start
Put your model image image.png
in the FourierImages
folder.
- Option 1: Give image at launch.
python fourier.py image.png
- Option 2: Launch then give the image.
python fourier.py
> image name:
Then give your image:
> image name:image.png
Description
There are 3 modes in this program:
-
Mode 1: Sampling Sample or draw a picture.
-
Mode 2: Drawing Watch the epicycles simulation which uses fourier transform.
-
Mode 3: Display Get the output image directly without waiting for the simulation.
Controls
- Space: Switch to next mode.
- Enter: Go back to the center.
- Up/Down/Right/Left Arrow: Move arround.
- Right/Left Shift: Zoom in or out.
- Quit/Escape: Quit.
- Z: Cancel last sample.
- R: Remove all samples.
- S: Save the fourier-coefficients.
Enjoy!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fourier-drawing-0.0.1.tar.gz
(1.8 kB
view hashes)
Built Distributions
Close
Hashes for fourier_drawing-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf309b3227a1803d8be4bbe358819f03acb6ff1eff96b036d03b40c5842bf6b1 |
|
MD5 | 17eb439d40a7de133cdd04f843f56f47 |
|
BLAKE2b-256 | d2be853ee88cd2c85dd622c52a98543b64afc89423f9e242f6f5c37f15d069f6 |
Close
Hashes for fourier_drawing-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb580c6c26ff1cd3664a329760261af20f640185a081dab2e1fe22f151f7276c |
|
MD5 | 3eeec578e510825df8590ecc84f26758 |
|
BLAKE2b-256 | 2112f82fbc61dd5bfd07926d3dfdc679fa94948899de9c55d43225c9e78cfda1 |