- import shoebot
- from shoebot.core import CairoCanvas, CairoImageSink, NodeBot
- outputfile = 'output.svg'
- iterations = 1
- sink = CairoImageSink(outputfile, "svg", multifile = false)
- canvas = CairoCanvas(sink, enable_cairo_queue=True)
- bot = shoebot.core.NodeBot(canvas)
- bot.size(150,150)
- bot.fill(1,0,0)
- bot.rect(10,10,100,100)
- bot._canvas.flush(frame=0)