Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by Josh ( 16 years ago )
def drawTriangle(win, p1, p2, p3, colour):
triangle = Polygon(p1, p2, p3)
triangle.setFill(colour)
triangle.draw(win)
def innerPatchDesign(x1, y1, x2, y2, colour):
win = GraphWin("Inner Patch Design", 100, 100)
rectangle = Rectangle(Point(x1, y1), Point(x2, y2))
rectangle.draw(win)
height = 20
width = 20
for row in range(5):
for x in range(5):
drawTriangle(win,
Point(x * width, row * height),
Point((x + 1) * width, row * height),
Point((x + 1) * width / 2, (row + 1) * height),
colour)
Revise this Paste
Children: 25320