I hereby claim:
- I am noloerino on github.
- I am nolo (https://keybase.io/nolo) on keybase.
- I have a public key whose fingerprint is C9A7 67BA EF83 4073 3515 CE21 6136 4C58 8E8A 9F80
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
""" | |
Simple harmonic motion animation example, version 1 | |
A bunch of stuff doesn't work, and will hopefully be fixed | |
author: Jonathan Shi | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.patches as patches | |
import matplotlib.animation as animation |
# Jonathan's update 4 on Francis's pong program | |
# KNOWN BUGS: | |
# - when the ball strikes on the side of the paddle, weird things happen | |
# likely explanation is that the refresh rate can't keep up with the speed | |
# - at high speeds, the ball goes through the boundaries | |
# - at certain angles, ball will bounce through the lower boundary (cause unknown), | |
# sometimes one player will be given a point for no apparent reason | |
# - one square below the right paddle sometimes will register contact | |
# - starting angle *might* not be in the correct range, not sure about this one | |
# TO DO: |