4 Copyright (c) 2013 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
10 <title>SmoothLife
</title>
11 <link rel=
"stylesheet" href=
"//fonts.googleapis.com/css?family=Open+Sans:300,700">
12 <link href=
"/static/css/out/site.css" rel=
"stylesheet">
13 <script type=
"text/javascript" src=
"example.js"></script>
23 An example of the
<a href=
"https://www.google.com/search?q=smoothlife"
24 target=
"_blank">SmoothLife
</a> algorithm ported to Native Client.
27 Example courtesy
<a href=
"https://github.com/binji" target=
"_blank">Ben
28 Smith
</a>, based on
<a
29 href=
"http://sourceforge.net/projects/smoothlife/"
30 target=
"_blank">this source
</a> by ionreq.
33 Read
<a href=
"http://arxiv.org/abs/1111.1567" target=
"_blank">Stephan
34 Rafler's paper
</a> for more information about the algorithm, or
35 browse the
<a href=
"https://github.com/binji/smoothnacl"
36 target=
"_blank">source
</a>.
39 FPS:
<span id=
"fps">0</span>
42 <div class=
"panel panel-info">
45 <div class=
"panel-body">
46 <table cellspacing=
"0" cellpadding=
"0">
49 <td class=
"name">Preset:
</td>
52 <option value=
"0">Subdividers
</option>
53 <option value=
"1">Green Hex
</option>
54 <option value=
"2">Fire Jellies
</option>
55 <option value=
"3">Magical Maze
</option>
56 <option value=
"4">Waterbug Gliders
</option>
57 <option value=
"5">Stitches 'n' Jitters
</option>
58 <option value=
"6">Blink Tubes
</option>
59 <option value=
"7">Oil Slick
</option>
60 <option value=
"8">Worms
</option>
61 <option value=
"9">Dried Moss
</option>
62 <option value=
"10">Hungry Dots
</option>
63 <option value=
"11">Wet Glass
</option>
64 <option value=
"12">Dissolving Chains
</option>
69 <td class=
"name">Palette:
</td>
72 <option value=
"0">Default
</option>
73 <option value=
"1">Black on White
</option>
74 <option value=
"2">White on Black
</option>
75 <option value=
"3">Purple Neon
</option>
76 <option value=
"4">Emerald
</option>
77 <option value=
"5">Green Noise
</option>
78 <option value=
"6">Royal Flame
</option>
79 <option value=
"7">Ice Aura
</option>
80 <option value=
"8">Rusty
</option>
81 <option value=
"9">Cool Blue
</option>
82 <option value=
"10">Frostbite
</option>
83 <option value=
"11">Mint Flower
</option>
84 <option value=
"12">Pyschedelic
</option>
89 <td class=
"name">Brush Size:
</td>
91 <input type=
"range" id=
"brushSizeRange" min=
"10.0" max=
"50.0"
92 step=
"0.5" value=
"10.0">
93 <span id=
"brushSize">10.0</span>
97 <td class=
"name">Thread Count:
</td>
99 <select id=
"threadCount">
100 <option value=
"1" selected
>1 Thread
</option>
101 <option value=
"2">2 Threads
</option>
102 <option value=
"4">4 Threads
</option>
103 <option value=
"6">6 Threads
</option>
104 <option value=
"8">8 Threads
</option>
109 <td class=
"name">Simulation Size:
</td>
111 <select id=
"simSize">
112 <option value=
"256" selected
>256x256
</option>
113 <option value=
"384">384x384
</option>
114 <option value=
"512">512x512
</option>
119 <td class=
"name">Zoom:
</td>
121 <input type=
"range" id=
"scale" min=
"0.5" max=
"5.0"
122 step=
"0.01" value=
"1.0">
123 <span id=
"scaleValue">100%
</span>
131 <div class=
"panel-body">
132 <button id=
"reset" class=
"one-third">Reset
</button>
133 <button id=
"splat" class=
"one-third">Splat
</button>
134 <button id=
"clear" class=
"one-third">Clear
</button>
140 <div class=
"Demo-body">
141 <div id=
"listener" class=
"Demo-content"></div>
144 <div id=
"loading-cover">
146 <div id=
"statusField"></div>
147 <div id=
"progress" class=
"progress progress-striped active">
148 <div id=
"progress-bar" class=
"progress-bar" role=
"progressbar" aria-valuenow=
"0" aria-valuemin=
"0" aria-valuemax=
"100" style=
"width: 0%">