randFromArray(metricUnits.concat([genericUnit]))
randRange(5, 10) randRange(5, 10) createOddShape({ width: WIDTH, height: HEIGHT })

What is the area of the shape? Each square in the grid is a 1 \times 1 UNIT_TEXT square.

init({ range: [[-1, WIDTH + 1], [-1, HEIGHT + 1]] }); var shape = []; _(WIDTH + 1).times(function(i) { line([i, 0], [i, HEIGHT], { "stroke-width": 1, stroke: "#bbb" }); }); _(HEIGHT + 1).times(function(i) { line([0, i], [WIDTH, i], { "stroke-width": 1, stroke: "#bbb" }); }); _.each(SHAPE.sides, function(side) { path([side.start, side.end], {stroke: BLUE}); });
SHAPE.area square plural_form(UNIT_TEXT)

The area is the number of 1 \times 1 squares the shape covers.

SHAPE.labelSquares();

Count the number of squares covered.

The area is SHAPE.area square plural_form(UNIT_TEXT, SHAPE.area).