siteIcon

Tech Novice Tools

Processing Apps

burgerIcon

Math Mambo Sagadisco

Structured Chaos?

About the saga...

The previous app explored 'chaotic' behavior when a feedback loop of input and output from a quadratic yielded seemingly 'random' numbers in the interval [0, 1] (ish).

We get it: simple 'systems' can give way to chaotic behavior when feedback is utilized.

However, what happens when a purely random process is employed with a simple algorithm that is repeated in a computer loop? Wouldn't that be completely random?

One would think so, until we dance the Mathematician's Mambo from the disco era gone by.

What's the Mathematician's Mambo you ask?

Well, glad you asked. Imagine an electronic dance floor with 3 lights (red, green and blue) arranged level on the floor in a shape like an equilateral triangle. Our 'groovy' mathematician steps on the floor and activates this process:

  1. The floor registers his initial location and records it
  2. One of the lights turns on briefly (twinkles, flashes), signalling the mambo dancer to move half-way between his current location and the twinkling light
  3. Upon arrival, the 'smart' dance floor activates a smaller light underneath the dancer's feet with the same color of light that triggered his movement to that location
  4. That new light stays on and then the process repeats: another light twinkles and the dancer moves to the midpoint between his current location and the location of that twinkling light

What would this look like over time? A bunch of random dots? It would seem so until you do the dance....

Note: We wrote this software years ago in Flash and it was awesome, but...Flash is no longer widely supported and was never supported by the iPhone ecosystem. So? We needed an upgrade. If you want to see that legacy app, assuming you can run it these days, here it is, complete with disco music. (We just loved Flash with ActionScript!)

Disappointed if you couldn't get Flash to run? No worries, we made a movie of the disco...just for you!

Boogie Down!

Last update: 01/24/20


Current Development Stages:

Time to Dance! - Stage 3 (Late January 2020)

Boogie Fever...

I think it's goin' around!

Very small changes in the twinkle code along with a couple of midpoint calculation utility function let's our mathematician dance the night away!


Dance Floor Operation: Twinkling Lights! - Stage 2 (Late January 2020)

Before the dancer can dance, we need the dance floor lights to twinkle randomly.

In the words of Jean Luc Picard:

Make it so.


Dance Floor Design: Translations and Rotations - Stage 1 (Late January 2020)

We know we could do enough math to center an equilateral triangle in the canvas, even when the origin is at its upper left corner, and moving down is positive.

However...is there an easier way using Processing's coordinate transformations and rotations?