Skip to content

Instantly share code, notes, and snippets.

View polm's full-sized avatar

Paul O'Leary McCann polm

View GitHub Profile
@polm
polm / README.md
Created November 11, 2011 09:42 — forked from anonymous/gist.html
World Generator with d3

World Generator

This code creates a Voronoi Diagram of a low-resolution space, generating an approximation of regional divisions of an overworld map typical of the first Legend of Zelda or Link's Awakening. The white squares are randomly generated "centers".

http://en.wikipedia.org/wiki/Voronoi_diagram

@polm
polm / life.sh
Created February 25, 2014 13:54 — forked from anonymous/life.sh
#!/bin/bash
GENS=50
WIDTH=12
HEIGHT=12
declare -a OLD
declare -a NEW
OLD=( \