canvas for zengile
by TemaMix
HTML
<script src="http://jcscript.com/data/js/jCanvaScript.1.5.15.min.js"></script>
<canvas height="600" width="600" id="canvas_1"></canvas>
CoffeeScript
simpleExample = ->
#initialization by canvas id
jc.start "canvas_1"
#than we can draw some object
#(see 'objects' in the left navigation menu)
jc.circle 300, 300, 250, "#838383", 1
jc.circle 300, 300, 130, "#FFFFFF", 1
jc.arc(80,50,30,100,95,"#000000");
#we can create another object and use some function
#(see more in 'functions')
#jc.rect(150, 40, 50, 60, 1).rotate 30, "left"
#and we need to redraw canvas in the end
jc.start "canvas_1"
$ ->
simpleExample()