Skip to content

Instantly share code, notes, and snippets.

View frigginglorious's full-sized avatar

Daniel Kraft frigginglorious

View GitHub Profile
@frigginglorious
frigginglorious / index.html
Last active February 29, 2016 14:42 — forked from whackashoe/gist:ffa7aea78467ecc73abc
radial-2 neighborhood 1d ca
<html>
<head></head>
<body>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r74/three.min.js"></script>
<script>
var ca = (function(rule, grid_size) {
var radius = 5;
var ruleset = _.map(_.range(1 << radius), function(i) { return (rule >> i) & 1; });