Mercurial > laserkard
view awesome_js/robert.js @ 37:021a9ab1ed5b laserkard
[svn r38] added echo.pl, a test program for the backend of the website
author | rlm |
---|---|
date | Sun, 24 Jan 2010 09:37:47 -0500 |
parents | 7742910e0479 |
children | 1ac1409ea68c |
line wrap: on
line source
3 var robert = (function process()4 {5 // Creates canvas 320 × 200 at 10, 506 var paper = Raphael(10, 50, 320, 200);8 // Creates circle at x = 50, y = 40, with radius 109 var circle = paper.circle(50, 40, 10);10 // Sets the fill attribute of the circle to red (#f00)11 circle.attr("fill", "#f00");13 // Sets the stroke attribute of the circle to white14 circle.attr("stroke", "#fff");16 }17 )