Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Bounce and Bop Till You Got No More

I collaborated with Quincy on the actual homework assignment for Day 9 of Parsons MFADT Bootcamp, Code section (bouncing balls with collision and arrays), so here's an alternate version of the assignment: bouncing balls with collision and gravity. There was some unusual behavior with my original positioning of the two balls so I started them off with such a location that they overlap for a while. Once they get away from each other the collision detection takes effect. I'd need to examine the math further to figure out why it didn't work with the initial positioning.
e.g., mouse, keyboard
e.g., visualization, fractal, mouse
Learn more about Creative Commons
Join Plus+ to change privacy settings
  • day9_collision_with_gravity.pde
This will be the default layout for your sketches
Easy on the eyes
It will show up when there is an error or print() in code
Disabled: Only available on p5js sketches.
Closes parenthesis-like characters automatically as you type

Controls
Play
Ctrl+Enter
Code
Ctrl+Shift+Enter
Save
Ctrl+S
Interface
Fullscreen
Ctrl+Alt+F
Switch Layout
Ctrl+Alt+L
Settings
Ctrl+Alt+.
Editor
Tidy Code
Ctrl+B
Multiple Cursors
Ctrl+Click
Duplicate Line/Selection
Ctrl+Shift+D
Move Line
Alt+↑/↓
Select Multiple
Ctrl+D
Find in Code
Ctrl+F
Find Next
Ctrl+G
Find Previous
Ctrl+Shift+G

See More Shortcuts

Join Plus+ for private sketches, version history, 1GB space, custom embeds, and more!