Source code: acceleration_of_cars
Built with Processing
Click on the black box to make random cars. They change colours so that when it brakes it turns red and turns green when it accelerates.
The cars's velocity are the function of y=sin x therefore the acceleration=cos x, using that can help me work out the acceleration of the car.
You can only make up to 1000 cars because I'm having troble appending objects to an array.
24/10/09