karpathy/lifejs

Artificial Life simulator using canvas. Based on https://github.com/karpathy/scriptsbots

120

0 commits

updated May 27, 2012

See the code

README

Javascript port of Scriptbots (https://sites.google.com/site/scriptbotsevo/)
Requires a copy of the Sylvester Vector math library (sylvester.js) in the same directory as Life.js and Worker.js

To use:

    <!DOCTYPE HTML>
    <html>
    <head>
        <title></title>
        <script type="text/javascript" src="Life.js"></script>
    </head>
    <body>
    <script type="text/javascript">
        var view = new Life.Renderer();
        view.init();
        document.body.appendChild(view.canvas);
    </script>
    </body>
    </html>

For a list of default parameters see: https://github.com/JimAllanson/lifejs/wiki/Default-Parameters
For a demonstration, see: http://jimallanson.github.com/lifejs/
For more information on the simulation, see: https://sites.google.com/site/scriptbotsevo/
For a copy of the Sylvester library, see: http://sylvester.jcoglan.com/

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

karpathy/lifejs

Artificial Life simulator using canvas. Based on https://github.com/karpathy/scriptsbots

120

0 commits

updated May 27, 2012

See the code

README

Javascript port of Scriptbots (https://sites.google.com/site/scriptbotsevo/)
Requires a copy of the Sylvester Vector math library (sylvester.js) in the same directory as Life.js and Worker.js

To use:

    <!DOCTYPE HTML>
    <html>
    <head>
        <title></title>
        <script type="text/javascript" src="Life.js"></script>
    </head>
    <body>
    <script type="text/javascript">
        var view = new Life.Renderer();
        view.init();
        document.body.appendChild(view.canvas);
    </script>
    </body>
    </html>

For a list of default parameters see: https://github.com/JimAllanson/lifejs/wiki/Default-Parameters
For a demonstration, see: http://jimallanson.github.com/lifejs/
For more information on the simulation, see: https://sites.google.com/site/scriptbotsevo/
For a copy of the Sylvester library, see: http://sylvester.jcoglan.com/

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.