This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.clear(); | |
class Test { | |
constructor(index) { | |
this.loadTest(index); | |
} | |
loadTest(index) { | |
let tests = this.tests(); | |
this.data = this.normalize(tests[index]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.clear(); | |
class Test { | |
constructor(index) { | |
this.initializeGlobals(); | |
this.loadTest(index); | |
} | |
initializeGlobals() { | |
this.finestResolution = 64; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="range" min="2" max="100" step="2" value="4" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.clear(); | |
class Drawer { | |
constructor({ quads, height, width }) { | |
this.w = width; | |
this.h = height; | |
this.quads = quads; | |
this.quadW = width / quads; | |
this.quadH = height / quads; | |
this.initializeCanvas(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button>Run</button> | |
<ul> | |
<li data-scale="1.00000"></li> | |
<li data-scale="0.50000"></li> | |
<li data-scale="0.25000"></li> | |
<li data-scale="0.12500"></li> | |
<li data-scale="0.06250"></li> | |
<li data-scale="0.03125"></li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> | |
<select> | |
<option value="3">3 Points</option> | |
<option value="4" selected>4 Points</option> | |
<option value="5">5 Points</option> | |
<option value="6">6 Points</option> | |
</select> | |
<button>Refresh</button> | |
</header> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> | |
<select> | |
<option value="1">3 Points</option> | |
<option value="2">9 Points</option> | |
<option value="3" selected>27 Points</option> | |
<option value="4">81 Points</option> | |
</select> | |
<button>Refresh</button> | |
</header> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> | |
<input type="range" min="1" max="500" step="10" value="20" /> | |
<button>Refresh</button> | |
</header> | |
<main> | |
<div> | |
<canvas height="1200" width="1200"></canvas> | |
</div> | |
</main> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<select id="scale"></select> | |
<select id="start"></select> | |
</div> | |
<canvas height="800" width="800"></canvas> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div><span><strong>Life</strong> Gen 1 → Gen 8</span></div> | |
<div><span><strong>Message</strong> Gen 1 ← Gen 8</span></div> | |
<div> | |
<canvas height="1200" width="1200"></canvas> | |
</div> |