p5 loading screen

  I made a loading screen for one of my projects. I chose to design it like this because I like the way it looks. One challenge I had was getting the square to move across the screen. I initially didn’t know how to do do this, but we had been taught how to accomplish this earlier in the course. To make the square move, I had to make a variable for the x part of the axis. When I programmed the location of the square, I made x appear in it. Then I programmed the variable to subtract a certain amount of pixels to itself (x = -75) which caused it to move right.

 

https://alpha.editor.p5js.org/gordon.ramsay/sketches/B143MOPDb