Variables

This week in ICM we learned about variables. I found this equally exciting and completely confusing. After much trial and error I started to get the hang of how to change some things. I made my sketch by laying out a grid of ellipses and then seeing how I might be able to effect them. I made a little game where some ellipses move out of the grid when you move the mouse across the screen (because x is assigned to mouseX). You can also try to line up the ellipses so that they fit back into the grid. I also assigned RGB colors to connected to mouseX and mouseY so that the background, ellipse fill and ellipse stroke all change with the mouse position.

p5.js:

https://editor.p5js.org/etc319/sketches/zhHXrByRo

CODE:

SCREENSHOTS OF VISUAL:

Previous
Previous

Project with Wen Chen

Next
Next

How Does Computation Apply to my Interests?