Skip to main content

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!

Metadata

Release files for fourier-drawing 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fourier-drawing 0.0.1
File Size Uploaded Provenance Actions
fourier-drawing-0.0.1.tar.gz 1.8 kB Without provenance Details for fourier-drawing-0.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fourier-drawing 0.0.1
File Interpreter ABI Platform Actions
fourier_drawing-0.0.1-py3-none-any.whl Python 3 none any Details for fourier_drawing-0.0.1-py3-none-any.whl
fourier_drawing-0.0.1-py2-none-any.whl Python 2 none any Details for fourier_drawing-0.0.1-py2-none-any.whl

Total release size: 7.2 kB

Release files / fourier-drawing-0.0.1.tar.gz

Download URL fourier-drawing-0.0.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b8b012d94f50923327bc3c122f8e7dcb83d22c72d74a3429fc638526a4efde12
BLAKE2b-256 checksum
How to use checksums
eb1fb47ad645a6c99bc80c47a33790cdc0322f9e2827a7e0ab96df686eae78e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.2

Release files / fourier_drawing-0.0.1-py3-none-any.whl

Download URL fourier_drawing-0.0.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf309b3227a1803d8be4bbe358819f03acb6ff1eff96b036d03b40c5842bf6b1
BLAKE2b-256 checksum
How to use checksums
d2be853ee88cd2c85dd622c52a98543b64afc89423f9e242f6f5c37f15d069f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.2

Release files / fourier_drawing-0.0.1-py2-none-any.whl

Download URL fourier_drawing-0.0.1-py2-none-any.whl
Size 2.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
cb580c6c26ff1cd3664a329760261af20f640185a081dab2e1fe22f151f7276c
BLAKE2b-256 checksum
How to use checksums
2112f82fbc61dd5bfd07926d3dfdc679fa94948899de9c55d43225c9e78cfda1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.2

Security for fourier-drawing 0.0.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page