PostScript
Bouncing Ball Simulation Generates a flipbook of a bouncing ball Written entirely in the Adobe PostScript language |
|
This PostScript program runs a simulation of a bouncing ball, and produces a small flipbook showing an animation of the ball. All of the computation is performed by the page output device, such as your laser printer, using forward-differencing in an Euler integration. The bouncing ball is subject to air resistance (drag) as well as energy loss from collisions with the ground, and animates with an oriented squash-and-stretch effect. I recommend printing the program to heavy card stock for a better flipbook. | By
Golan Levin MIT Media Laboratory, 9 February 1999 MAS834: Nature of Mathematical Modeling PostScript code here (HTML) PostScript file (download .ps) Ghostscript 5.5.0. (helpful .exe) |