No project description provided
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.
Demo
Install
#Clone the repository
git clone git@github.com:MarcPartensky/Fourier.git
cd Fourier
#Install requirements
pip install -r requirements.txt
Usage
Put your model image image.png
in the FourierImages
folder.
- Option 1: Give image at launch.
python __main__.py image.png
- Option 2: Launch then give the image.
python __main__.py
> image name:
Then give your image:
> image name:image.png
Run with docker
# Replace the first occurence of 'FourierImages' by your custom image folder
# Replace 'rodolphe.jpg' by your own image too
docker-compose run \
-v ./FourierImages:/opt/FourierImages \
--entrypoint './__main__.py rodolphe.jpg' \
fourier
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.
Hide or Show the graphical components
Press the following numbers to toggle:
1
: Image2
: Green lines3
: Red graph4
: White vectors5
: Grey circles6
: Yellow sample
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.1.6.tar.gz
(53.9 kB
view hashes)
Built Distribution
Close
Hashes for fourier_drawing-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21d855793eb16789905175e4be12a150e03b8951b935c94c36fda40b0fb4001 |
|
MD5 | ace56380ac04f74b32ebdc34fa9b8784 |
|
BLAKE2b-256 | def825ee8c7ef13a3e3fdc6ed12296d95eb6457b47215d803dfb1f1fc5336ff5 |