annotate awesome_js/robert.js @ 32:0deeb2d5d1db
laserkard
[svn r33] modifications with Kevin on jan 18.
author |
rlm |
date |
Mon, 18 Jan 2010 00:19:17 -0500 |
parents |
7742910e0479 |
children |
1ac1409ea68c |
rev |
line source |
rlm@29
|
1
|
rlm@29
|
2
|
rlm@29
|
3 var robert = (function process()
|
rlm@29
|
4 {
|
rlm@29
|
5 // Creates canvas 320 × 200 at 10, 50
|
rlm@29
|
6 var paper = Raphael(10, 50, 320, 200);
|
rlm@29
|
7
|
rlm@29
|
8 // Creates circle at x = 50, y = 40, with radius 10
|
rlm@29
|
9 var circle = paper.circle(50, 40, 10);
|
rlm@29
|
10 // Sets the fill attribute of the circle to red (#f00)
|
rlm@29
|
11 circle.attr("fill", "#f00");
|
rlm@29
|
12
|
rlm@29
|
13 // Sets the stroke attribute of the circle to white
|
rlm@29
|
14 circle.attr("stroke", "#fff");
|
rlm@29
|
15
|
rlm@29
|
16 }
|
rlm@29
|
17 )
|
rlm@29
|
18
|