From be09d3efec700f54841e086daff1251820ac4166 Mon Sep 17 00:00:00 2001 From: Lauren Dawnkaski Date: Fri, 27 Sep 2024 13:37:18 -0400 Subject: [PATCH] I have all 7 planets rotating. I now have 7 planets rotating around the sun. I have realized that doing this to scale is not practical just because of the sheer size of the sun compared to the planets. I will be making it just relatively to scale. I have also decided to stick with circles rather than ellipses. The next thing I want to try to do is have the planets either start at different spots or move at different speeds. We will see. --- drawing.py | 55 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 48 insertions(+), 7 deletions(-) diff --git a/drawing.py b/drawing.py index d3d7265..8e495a0 100644 --- a/drawing.py +++ b/drawing.py @@ -17,23 +17,64 @@ def fly(distance): def sun(): fillcolor("yellow") begin_fill() - fly(20) + fly(40) left(90) - circle(20) + circle(40) end_fill() left(90) - fly(20) + fly(40) -for frame in animate(60, loop=True): +for frame in animate(80, loop=True): sun() with frame.rotate(0, 360): - fly(100) - fillcolor("blue") + fly(40) + fillcolor("thistle") + begin_fill() + circle(3) + end_fill() + with frame.rotate(0, 360): + fly(40) + fillcolor("goldenrod") + begin_fill() + circle(8) + end_fill() + with frame.rotate(0, 360): + fly(40) + fillcolor("forest green") + begin_fill() + circle(9) + end_fill() + with frame.rotate(0, 360): + fly(40) + fillcolor("red") + begin_fill() + circle(4) + end_fill() + with frame.rotate(0, 360): + fly(40) + fillcolor("peru") + begin_fill() + circle(25) + end_fill() + with frame.rotate(0, 360): + fly(40) + fillcolor("pale violet red") begin_fill() circle(20) end_fill() - + with frame.rotate(0, 360): + fly(40) + fillcolor("light blue") + begin_fill() + circle(15) + end_fill() + with frame.rotate(0, 360): + fly(40) + fillcolor("midnight blue") + begin_fill() + circle(15) + end_fill() done()