|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/gohover/cell/test/webgl-game-of-life-experiment/ |
Upload File : |
<!DOCTYPE html>
<html>
<head>
<title>WebGL Game of Life</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="gol.css"/>
<script src="lib/igloo-0.1.0.js"></script>
<script src="lib/jquery-2.1.1.min.js"></script>
<script src="js/gol.js"></script>
</head>
<body>
<h1>WebGL Game of Life</h1>
<!-- Canvas dimensions must be powers of two. -->
<canvas id="life" width="1024" height="512"></canvas>
<div class="description">
<p>
This Game of Life simulation is running entirely on your
graphics card. The simulation state swaps back and forth
between two texture buffers in the GPU's memory.
</p>
<h2>Controls</h2>
<ul>
<li>
<span class="input">Left-click</span>
<span class="result">draw live cells</span>
</li>
<li>
<span class="input">Middle/right-click</span>
<span class="result">draw dead cells</span>
</li>
<li>
<span class="input">[SPACE]</span>
<span class="result">toggle pause/play</span>
</li>
<li>
<span class="input">[r]</span>
<span class="result">reset to random state</span>
</li>
<li>
<span class="input">[DEL]</span>
<span class="result">clear the simulation state</span>
</li>
<li>
<span class="input">s</span>
<span class="result">snapshot the simulation state</span>
</li>
<li>
<span class="input">shift+s</span>
<span class="result">restore from snapshot</span>
</li>
</ul>
</div>
<div class="fps">
</div>
</body>
</html>