Examples¶
These examples are included with the library in /examples
Mandelbrot¶
Render a Mandelbrot Set
Highlights: panning, zooming, drawing to pixels
## Gas Maxwell Boltzmann Distribution
The speeds of particles of a gas approach a [Maxwell Boltzmann Distribution](https://en.wikipedia.org/wiki/Maxwell%E2%80%93Boltzmann_distribution)
Highlights: particle simulation, plotting a graph
Poisson Disc Sampling¶
Distribute points evenly in a plane
Highlights: poisson_disc::uniform
Prime Spiral¶
Numbers make spirals when plotted in polar coordinates
Inspired by <https://youtu.be/EK32jo7i5LQ>
Hightlights: Vec2::from_polar, panning, zooming
Second Order Dynamics¶
Use the SecondOrderDynamics struct to make a point follow the cursor.
Softbody¶
Full-fledged softbody simulation using damped springs