Note: Graphics2D 2.0 will be renamed to DeltaJS.
Graphics2D is a javascript library available under the MIT License.
bower install graphics2d
Just download graphics2d.min.js, put into your project folder and attach to your page:
<script src="./js/graphics2d.min.js"></script>
<canvas id="cnv" width="600" height="400"></canvas>
var ctx = Delta.query('#cnv');
// draw a red rect
ctx.rect({
x: 100,
y: 100,
width: 50,
height: 50,
fill: 'red'
});