# Draws three lines to make a triangle. from DrawingPanel import * def main(): panel = DrawingPanel(400, 300) panel.background = "yellow" for i in range(10): x = 25 + i * 20 y = 25 + i * 20 w = 100 # panel.stroke = 2 panel.draw_polygon(x + w//2, y, x, y + w, x + w, y + w, "red") main()