Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Programming with Processing 102-1 of 2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,808
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 13, 2010

When programming a basic bouncing ball in Processing, at first it's best not to think of it as a "ball", but as a circle. The circle has a location (x,y), a radius, and a velocity (x,y). When the location and radius add up to a number greater than the size of your window, the velocity simply reverses. Here's a quick example.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • I found this tutorial very helpful though. thank you.

  • "my ellipse will now be...an elongated oval"

    which is an ellipse. lol

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more