ive termed my project “loosing my mind”cos the sketch provides with that kind of a feeling.
Ive used variable to define attributes in rect and eclipse shapes making the code short and east to write.
the speed variable is to allows shapes to move in a certain direction given in the attributes.
For the 1st time I’ve used “if “statement to make the shapes bounce. so in this case when the shape reaches the width or height of the canvas it bounces back.
https://editor.p5js.org/ShauryaSeth/full/q2uhRCmkq