Skip to content

Instantly share code, notes, and snippets.

View yilliot's full-sized avatar

Elliot yilliot

View GitHub Profile
$(function () {
var canvas = $('#draw-square')[0];
if (canvas.getContext) {
var context = canvas.getContext('2d');
var a1 = 1.5*Math.PI; // top 12
var a2 = 0*Math.PI; // right 3
// bottom : 0.5 , left : 1 , top : 1.5 , right : 0(2)