• Stars
    star
    364
  • Rank 117,101 (Top 3 %)
  • Language
    JavaScript
  • License
    BSD 3-Clause "New...
  • Created over 12 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Some simulation experiments in JavaScript

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