top of page
Search
Stephanie Hernandez

p5.js animation

For this assignment, getting the ellipse to bounce off all sides of the canvas was the simplest component. This required adjusting already existing code to accommodate for the addition of having the ellipse bounce off the top and bottom of the canvas as well as the left and right. To get the ellipse to change color after hitting each of the walls was a little more challenging. I just fumbled around with code until something worked.

 

https://editor.p5js.org/stephhernandez593/sketches/kpcj37De1

0 views0 comments

Recent Posts

See All

Homework assignment 13

Amazon in 2014 had implemented an algorithm with the hopes of simplifying their recruiting process. This new hiring algorithm was meant...

Comments


bottom of page