52
61
// FIXME: need to add constants (enum) for shape. See
53
62
// http://www.misfitgeek.com/2011/10/using-enum-in-javascript/
55
65
context.fillRect (x, y, width, height);
60
71
context.arc(x + width/2, y + height/2, width/2, 0, 2 * Math.PI, false);