Skip to content

Instantly share code, notes, and snippets.

@beala
beala / AgeProgressMeter.pde
Created December 10, 2012 08:11 — forked from DrSkippy/AgeProgressMeter.pde
Graphic showing how many months old you are compared to median and long lifespans
// Small changes to DrSkippy's code. Turns graph horizontal. Makes margins smaller.
// Original (https://gist.github.com/4057438) Blog (http://blog.drskippy.com/2012/11/11/age-visualization/)
import java.util.*;
import java.text.*;
int boxSize = 5; // pixel size of month representation
int boxSpacing = 4; // vertical and horizontal spacing
int decadeSpacing = 2*boxSpacing; // extra space between decades
int markerOverhang = 18;