From ec8d62d7457f27457cd64c87697164e847442825 Mon Sep 17 00:00:00 2001 From: Lauren Dawnkaski Date: Mon, 30 Sep 2024 08:17:22 -0400 Subject: [PATCH] I drew the rings for orbit I drew the orbits out on my ipad to map it out until I saw the pattern The last thing I need to do is get the planets to align with the orbits Some of them might need to be farther apart due to planet size --- drawing.py | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/drawing.py b/drawing.py index 8e495a0..5461ef7 100644 --- a/drawing.py +++ b/drawing.py @@ -7,6 +7,7 @@ from turtle import * from superturtle.animation import animate +bgcolor("black") def fly(distance): penup() @@ -15,63 +16,108 @@ def fly(distance): def sun(): + color("yellow") fillcolor("yellow") begin_fill() fly(40) left(90) circle(40) + right (90) end_fill() + +def orbit(): + color("white") + fly(20) left(90) - fly(40) + circle(60) + right(90) + fly(20) + left(90) + circle(80) + right(90) + fly(20) + left(90) + circle(100) + right(90) + fly(20) + left(90) + circle(120) + right(90) + fly(20) + left(90) + circle(140) + right(90) + fly(20) + left(90) + circle(160) + right(90) + fly(20) + left(90) + circle(180) + right(90) + fly(20) + left(90) + circle(200) + right(90) + for frame in animate(80, loop=True): sun() + orbit() with frame.rotate(0, 360): fly(40) + color("thistle") fillcolor("thistle") begin_fill() circle(3) end_fill() with frame.rotate(0, 360): fly(40) + color("goldenrod") fillcolor("goldenrod") begin_fill() circle(8) end_fill() with frame.rotate(0, 360): fly(40) + color("forest green") fillcolor("forest green") begin_fill() circle(9) end_fill() with frame.rotate(0, 360): fly(40) + color("red") fillcolor("red") begin_fill() circle(4) end_fill() with frame.rotate(0, 360): fly(40) + color("peru") fillcolor("peru") begin_fill() circle(25) end_fill() with frame.rotate(0, 360): fly(40) + color("pale violet red") fillcolor("pale violet red") begin_fill() circle(20) end_fill() with frame.rotate(0, 360): fly(40) + color("light blue") fillcolor("light blue") begin_fill() circle(15) end_fill() with frame.rotate(0, 360): fly(40) - fillcolor("midnight blue") + color("blue") + fillcolor("blue") begin_fill() circle(15) end_fill()