Giter Club home page Giter Club logo

spiro's Introduction

Author: Eric Moyer
Copyright: Copyright © 2013 Eric Moyer <[email protected]>
license:Modified BSD

Spiro

Overview

Spiro is an kinetic spirographical curve demo written in Dart.

Source code: https://github.com/epmoyer/spiro

Web demo: http://www.lemoncrab.com/spiro/spiro.html

Operation

Spiro renders a virtual spirographical curve by implementing multiple wheels rotating at different speeds (a wheel on a wheel on a wheel...). The center of each successive wheel rides around the circumfrence of the last, and the "pen" rides around the final wheel. Becasuse the relative speeds are integer multiples of each other, the curve is guaranteed to close (though not guaranteed to be non-overlapping). Because the relative speeds can be both positive and negative, the curves can exhibit extremely interesting behaviors.

Two different sets of spirograph coefficients (wheel radii and speeds) are randomly chosen and the program smoothly slews between the two curves using a slew rate that is cosine mapped (so that the slew is slow near convergence and fastest when midway between the two curves). Once a curve converges, the oposite curve is randomized and the process repeats.

The overall curve is also slowly rotated so that the start point doesn't boringly sit in the same place.

spiro's People

Watchers

 avatar  avatar

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.