HTML5 canvas sandbox v3 - Multiple objects
We now use an array to store a list of circles so that we can track more than one. Each item in the array is an object containing x, y, dx, dy, and r for one circle
The script listens for the space bar to add circles to the system (click inside the red box first so it will hear you)
Comments
No comments have been posted yet.
Log in to post a comment.