top of page

week 4: using variables

  • Writer: Rachelle Vassoler
    Rachelle Vassoler
  • Sep 28, 2022
  • 1 min read

for this assignment, we used our work from the previous week and used variables to make our initials move across the screen


we were introduced to the concept of variables and learned new code to implement our ideas into our existing work

float mouseX, mouseY

int mousePressed

if, else


I decided on which direction I wanted my initials to move in and coded them so that they moved down the screen. I then coded a loop effect so they would start at the top without having to run the code again.


my code:

finished project:


Comments


©2023 by rachelle vassoler

bottom of page