I’ve noticed that I tend to forget to post about my programming classes. I think it’s because we’re often doing things that seem pretty basic, or that don’t ever quite feel finished. But it’s still good to record progress, so here are a few things that I’ve been coding over the past couple of weeks.
The first homework assignment for my IDStudio class (with Noah Passel) was to create 4 compositions: a traditional “hello world,” and then three compositions of three circles, made in any way we chose, but we had to pick three different methods for getting them on the screen. I used the SVG canvas for the first circle composition, then d3, and then p5.js.
We also had to pick an artist from a list, and create one composition inspired by their work. I chose Vera Molnar, and selected this piece as my inspiration (image from here):
A few nested for loops and a lot of Math.randoms later, I had this:
The fun thing about this one is that it updates every time you refresh, so you get a new composition each time.
We’ve also been working on the basics in my Processing/p5.js class with Pedro Cruz. We’re loosely following the outline of the Nature of Code by Daniel Shiffman, and I’ve been playing around with converting his text examples to p5.js on the side.
So far, we’ve learned to build particle systems and give them properties, and we’re using vector math to draw. We’ve written an update function that takes a position and velocity vector and draws the particles to the screen. Adding in some mouse interaction, a sound file, and some auto-generating code, we now have a pretty nice collection of fireworks: