Science.js
Science.js is a p5.js library that makes it easy to build science simulations.
Example Usage
Vectors
Velocity and acceleration vectors of a bouncing ball.
A different rotating vector.
A rotating vector.
A simple vector.
Vectors can be added together.
Free Body Diagrams
Displays a free body diagram.
Moving Background
Displays a moving background of a city street.
Displays a moving background of a cloudy sky.
KineticMass
A simple accelerating ball.
A ball on a grid with viewable vectors.
A ball that bounces around in a canvas.
Just some balls that bounce around in a canvas.
A particle's movement and Brownian motion.
Math
How you can plot a simple function with a controllable parameter
How you can plot a simple function
Wheels
A simple wheel that rotates.
Wheels that rotate.
A wheel that rolls, but does not slip.
A wheel with translational motion.
The relationship between the arc of a wheel and its path.
Springs
A simple spring.
Reference
Contributing
Have a cool feature to add to the library? Before submitting a pull request, read through here first.
Documentation
Detailed reference documentation for each object in the library.
Setup
Getting started with Science.js.