This week for ICM, we extended our knowledge to include code that made our images more interactive with the user. For this week’s assignment, I used changing background colors and rotating 3D objects that moved depending on the cursor of the user. I wanted the changing rainbow colors of the cube to invite the user to play around with the spinning 3D object and either extend it’s shape or decrease it. I used the map function to keep the cube within the dimensions of the screen and used mouseX and mouseY functions to allow the user to have the cube change shape depending on where they moved their cursor.
Interact with the cube here.
Leave a Reply