From f14a04423f3b43238c5c92618fbcc9a4c40df668 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 12 Jun 2015 22:30:07 +0200 Subject: [PATCH] Diagram.py: add some example calls to test drawing rectangles --- Diagram.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Diagram.py b/Diagram.py index 8cb41ad..fa35d32 100755 --- a/Diagram.py +++ b/Diagram.py @@ -282,4 +282,10 @@ if __name__ == "__main__": diagram.draw_line(0, y, 400, y, [0, 0, 1, 0.2]) + diagram.draw_rect(40, 40, 300, 100, stroke=True) + diagram.draw_rect(40, 40, 300, 100, pi / 30, stroke=True) + + diagram.draw_rect(40, 250, 300, 100, stroke=True) + diagram.draw_rect_from_center(40 + 150, 250 + 50, 300, 100, theta=pi / 40, stroke=True, stroke_color=[1, 0, 0], fill=False) + diagram.show() -- 2.1.4