homework #4-loops

 https://editor.p5js.org/kmccloskey2/sketches/TpgL2kZGs 

Attached is my project for homework using loops. I attempted to make a pizza oven- conveyer belt. To do this, I used nested loops and set the fill to random to make the look of an electric heater for a pizza oven. I used the random effect so it would appear more as if it was cooking. I used loop for the conveyer belt, to make the appearance of lines. If I would not have used a loop, I would have had to rewrite every rectangle with a different x variable. It is easier to use loops because I only have to write it once. I also used conditionals and variables to make the pizza go continuously in the conveyer belt oven. 

Comments

Popular posts from this blog

Example

OOP & Arrays Homework