Skip to content

Commit 01ac4ea

Browse files
committed
add xckd Conway figure
1 parent b3587c1 commit 01ac4ea

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

index.html

+5
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@
140140
for(var i=0; i<2; i++) {
141141
manager.addPattern(i*40 + 55, 18, pattern);
142142
}
143+
144+
var pattern = patterns['man'];
145+
for(var i=0; i<1; i++) {
146+
manager.addPattern(110, 38, pattern);
147+
}
143148
</script>
144149
</body>
145150
</html>

script.js

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ var patterns = {
2525
[17, -2], [17, -3], [18, -2], [18, -3],
2626
[-16, 0], [-17, 0], [-16, -1], [-17, -1],
2727
],
28+
'man': [ // https://xkcd.com/2293/
29+
[0, 0], [0, -1], [0, 1], [0, 2], [-1, 0], [1, 0], [2, 1], [3, 2], [-2, 1], [-3, 0],
30+
[-1, 3], [-1, 4], [1, 3], [1, 4],
31+
[-1, -2], [-1, -3], [-1, -4], [0, -4], [1, -4], [1, -3], [1, -2],
32+
]
2833
}
2934

3035

0 commit comments

Comments
 (0)