This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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) |