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.

Demo

Fourier Animation

Install

#Clone the repository
git clone https://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

# Download the docker-compose.yml file and cd into its parent folder
# Put your image in the FourierImages folder then run
# Replace 'image.png' by your own image filename
docker-compose run --rm fourier image.png

Or choose your own folder

# Download the docker-compose.yml file and cd into its parent folder
# Replace the first occurence of 'FourierImages' by your custom image folder
# Replace 'image.png' by your own image too
docker-compose run --rm \
    -v ./FourierImages:/opt/FourierImages \
    fourier 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: Image
  • 2: Green lines
  • 3: Red graph
  • 4: White vectors
  • 5: Grey circles
  • 6: Yellow sample

Enjoy!

Metadata

Release files for fourier-drawing 0.1.7

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.1.7
File Size Uploaded Provenance Actions
fourier_drawing-0.1.7.tar.gz 54.0 kB Without provenance Details for fourier_drawing-0.1.7.tar.gz

Built distribution (wheel)

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

Total release size: 112.8 kB

Release files / fourier_drawing-0.1.7.tar.gz

Download URL fourier_drawing-0.1.7.tar.gz
Size 54.0 kB
Tags Source
SHA-256 checksum
How to use checksums
32f29237a1d59840d5f49f4dd037bccbd6c148f7bf4292cef7597cc19986cb55
BLAKE2b-256 checksum
How to use checksums
c3aae8ef085bffdf20914ad2b5820363238650f513b3d5ab80bd904001e52c4b
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.7-py3-none-any.whl

Download URL fourier_drawing-0.1.7-py3-none-any.whl
Size 58.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec7633b33ec7cb62f30f343d15dba6bded8a63ee8b21cc24c5a4711eca34cdbb
BLAKE2b-256 checksum
How to use checksums
526b90db2e88159487e76a0d5edfda1db5848cde91f93ea0a5a9ba855d53999a
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.7

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