ICM Week3 : Chaos to Order by Randomness, Conditionals, Loops and Functions

Well this is a title i like: Chaos to Order.

because, when you think about it, aren’t we the digital creatures in this analog world? The mediators between left and right, good and bad, chaos and order?

anyway, this one began with a random contraption Peach (Changtao, my partner for this assignment) made to kick us off. it was supposed to be a very free spirited polygon that bends and stretches in space and its vertices sorta bounce off this invisible box around it that stopped it from expanding too much. The idea was to add a slider that limits that polygon to a smaller and smaller box, and a button that basically changed its color.

Okay now that i think about, maybe we were better off using the “beginShape” function rather than quad…

anyways, first thing i did was putting the Quad (Polygon) generator inside a function for it to be easier to call. After that was figuring out the rollover. We found an example that also added Hand and Cursor to our rollover… a good find for p5!

Next was the slider nightmare. I mean… there must be an easier way, right? this is just a learning exercise… right? no? okay.

So after implementing the slider, we wanted a clean look. so we removed the line and just created a geometric scene basically where colors were front and center. Oh and that whole limiting bounding box thing? yeah that didn’t work out. Turns out the random function can sometimes jump through limitations! Instead, we use our slider to calm our crazy polygon down to a zen state where it’s breathing in and out… not really caring about anything.

Chaos to Order on p5.js Online Editor