Skip to content

keyten/Graphics2D

Repository files navigation

Graphics2D JavaScript Library

Note: Graphics2D 2.0 will be renamed to DeltaJS.

Graphics2D is a javascript library available under the MIT License.

Install with bower

bower install graphics2d

Or use as a script

Just download graphics2d.min.js, put into your project folder and attach to your page:

<script src="./js/graphics2d.min.js"></script>

Then use

<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'
});

Documentation

Russian

English

Examples

Sandbox