rlm@29: rlm@29: rlm@29: var robert = (function process() rlm@29: { rlm@29: // Creates canvas 320 × 200 at 10, 50 rlm@29: var paper = Raphael(10, 50, 320, 200); rlm@29: rlm@29: // Creates circle at x = 50, y = 40, with radius 10 rlm@29: var circle = paper.circle(50, 40, 10); rlm@29: // Sets the fill attribute of the circle to red (#f00) rlm@29: circle.attr("fill", "#f00"); rlm@29: rlm@29: // Sets the stroke attribute of the circle to white rlm@29: circle.attr("stroke", "#fff"); rlm@29: rlm@29: } rlm@29: ) rlm@29: