Can Draw a curve on a canvas using a polynomial

needs to be drawn much faster, look into creating a hill, then storing
some hill points in order to test for a collision.