drawbotscreen.jpg

LettError
RoboFab
Processing
Python
PyObjC

Copyright
2003-2008
DrawBot

Reference

Shapes

rect(x, y, h, w)

draw a rectangle with the bottom left at position (x, y), and width w and height h.

rectoval.jpg

oval(x, y, h, w)

draw an oval with the bounds fitting the bottom left at position (x, y), and width w and height h.

line(x1, y1, x2, y2)

draw a straight line between (x1, y1) and (x2, y2).

polygon(x, y, x1, y1, ... xn, yn, close=True)

draw a polygon of a range of x, y points. The optional keyword close can be set to False to create an open path. By default polygon creates a closed path.