Skip to content

mwdchang/attractors

Repository files navigation

Attractors

A collection of strange attractors and other mathematically generated things.

Adding attractor

An attractor class implements these methods

class AttractorXYZ {
  constructor() {
    // set multiplier, type and other attributes
  }

  reset(random = false) {
    // setup the attractor's parameters and initial position
  }

  getPosition() {
    // returns xyz-coord
  }

  getParameters() {
    // returns a json or string representation of the attractor's config
  }

  next() {
    // update xyz-coord for the next iteration/step
  }
}

About

Strange attractors

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published