From: Antonio Ospite Date: Fri, 12 Jun 2015 20:30:07 +0000 (+0200) Subject: Diagram.py: add some example calls to test drawing rectangles X-Git-Url: https://git.ao2.it/experiments/RadialSymmetry.git/commitdiff_plain/f14a04423f3b43238c5c92618fbcc9a4c40df668 Diagram.py: add some example calls to test drawing rectangles --- 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()