Code Monkey home page Code Monkey logo

attractive's Introduction

Attractive

######Renders Peter de Jong attractors for your entertainment!

A small project of mine, but I am proud of the results and they are actually interesting so I thought I'd put it here.

In dynamical systems, an attractor is a set of physical properties toward which a system tends to evolve, regardless of the starting conditions of the system.
An attractor is called strange if it has a fractal structure. This is often the case when the dynamics on it are chaotic, but strange nonchaotic attractors also exist.
(Wikipedia)

Specifically, the Peter de Jong attractor is an attractor defined by this system: Imgur

This system is quite chaotic, in that even a slight adjustment of the initial conditions or constants in the system (a, b, c, d) causes the system to manifest in a dramatically different way. To create animation, the renderer increments the constants by a small delta each frame to update the image, changing the trajectory of the system. The visual representation of the attractor is a point cloud of many iterations of the system, a trace of the trajectory.
As the image is digitally sampled and thus aliased, it can be thought of as a two-dimensional probability histogram of the points in the set.
The renderer also colors the points where the color is a function of the 'velocity' of the system, or the Euclidean distance between successive points, a purely aesthetic decision. The intensity is the probability, so bright pixels are where many points are located.

######Some images:
These are 600,000 points per frame:

Imgur Imgur Imgur

<More to come>

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.