Some simulation experiments in JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
3rd
css
gradientui
grayscott
gsimage
massspring
LICENSE
README.rst

README.rst

JavaScript Experiments

Some JavaScript experiments. You can see them online using the links below. Google Chrome is the best browser for these demos, but Opera or Firefox should be fine too.

Gray-Scott

Gray-Scott is a solver for the Gray-Scott reaction-diffusion model. Roughly, this can be seen as a simulation of the behavior of diffusive living beings reproducing under conditions of limited food. Very different patterns emerge for slight changes in feeding and death rates.

This experiment uses Three.js and performs calculations on the GPU. It requires a WebGL enabled browser.

https://github.com/pmneila/jsexp/raw/master/grayscott/grayscott.png

Screenshots

Some screenshots of the application.

https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/default_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/holes_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/mazes_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/solitons_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/solitons2_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/spots_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/waves1_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/waves2_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/worm_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/worms_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/inverseworms_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/chaos_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/spotsx_s.png https://github.com/pmneila/jsexp/raw/master/grayscott/snapshots/wormsx_s.png

Particles

Particles is a simple mass-spring physics simulation.

https://github.com/pmneila/jsexp/raw/master/massspring/particles.png