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
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!
Metadata
Release files for fourier-drawing 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fourier_drawing-0.1.3.tar.gz | 53.5 kB | Without provenance | Details for fourier_drawing-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fourier_drawing-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for fourier_drawing-0.1.3-py3-none-any.whl |
Total release size: 112.0 kB
Release files / fourier_drawing-0.1.3.tar.gz
| Download URL | fourier_drawing-0.1.3.tar.gz |
|---|---|
| Size | 53.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2acd4fef935c4ef66c515915a29684700c176b6df52f0bdb9c20da7fceda50b
|
|
BLAKE2b-256 checksum How to use checksums |
d4d72172f2178dabdb02ce1632985d0576a7cf28bd8f9abf7557947385acfde5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.17.9-300.fc36.x86_64
|
Release files / fourier_drawing-0.1.3-py3-none-any.whl
| Download URL | fourier_drawing-0.1.3-py3-none-any.whl |
|---|---|
| Size | 58.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a59c514a2c3eeaf4ed3be6907407f0bc6e5a0e056a38f65f0c3cefeac7bd1d50
|
|
BLAKE2b-256 checksum How to use checksums |
d5b5020bfe1b7dd17c3030a48a85a9d27fd7387fbf40b5e40c146c6f07d92e95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.17.9-300.fc36.x86_64
|
Security for fourier-drawing 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.