from cs1graphics import * from time import sleep paper = Canvas(500,300) thick = 2 xkcd = Layer() head = Circle(25, Point(0,-25)) head.setFillColor('white') head.setBorderWidth(thick) xkcd.add(head) trunk = Path(Point(0,0), Point(0,50)) trunk.setBorderWidth(thick) xkcd.add(trunk) arms = Path(Point(-25,60), Point(0,0), Point(25,60)) arms.setBorderWidth(thick) xkcd.add(arms) legs = Path(Point(-25,150), Point(0,50), Point(25,150)) legs.setBorderWidth(thick) xkcd.add(legs) xkcd.move(100, 100) paper.add(xkcd) sleep(0.5) xkcd.move(50,0) sleep(0.5) xkcd.move(50,0) sleep(0.5) xkcd.move(50,0)