Giter Club home page Giter Club logo

fourier-series's Introduction

fourier-series

To make your own. First use the generator to create a set of constants.

py generate_starting_conditions.py path/to/svg

e.g. py generate_starting_conditions.py svgs/duck.svg 20

It will ask you for a resolution. It corresponds to how finely it will calculate each path. Then the amount of pairs of circles. The more it has, the more accurate the final image will be.

Then run py fourier_series.py. It will read the constants and generate the series accordingly. You may specify a unit to determine the scale. Just try until the whole thing fits on the screen. Usually 1 is fine. It supports floats

e.g. py fourier_series.py 1.1 This will make it slightly bigger

There's a 27% possibility that there's a memory leak somewhere. Idk where im a python programer

run time customizations coming soon ig

Contributors

MR-Spagetty

fourier-series's People

Contributors

bee-free avatar coldmacaroni avatar mr-spagetty avatar

Watchers

 avatar

fourier-series's Issues

Error parsing SVGs with exponents

Plain inkscape svgs save with really small values as exponents. Like 1e-5. The parser fails to read these and throws an error.

coordinate = float(item.strip())
                 ^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: '-1e'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.