SVGKit in the MochiKit Interpreter

This is the interpreter from MochiKit with the SVGKit libraries included. Type some code into the text input and press enter to see the results. As an example, the following creates a square, displays the SVG, then adds a circle:

svg = new SVGKit(100,100)
rect = svg.RECT({x:10, y:10, width:50, height:50, fill:'red'})
svg.append(rect)
writeln(svg.svgElement)
circ = svg.CIRCLE({cx:60, cy:60, r:20, fill:'blue', 'fill-opacity':0.5})
svg.append(circ)

Notes:

MochiKit Logger: javascript:MochiKit.Logging.logger.debuggingBookmarklet()