04 Jun 2023

Life simulation

Category howto

How to make a little life simulation in javascript in browser, found easy to learn repo with various life patterns by @brainxyz

This kind of code is ideal for education of javascript canvas using, its easy to understands and works in browser.

I’ve modified code a little, and achieve some stability with virus like structures which consume other particles.

Here is a gist for that code: https://gist.github.com/noroot/a3a5d4ae2d367530c8d5a0c13ca2ee75

How it works:

References:

Interactive example in details below



Comments