I have all the planets placed where I want them.

I decided to remove the animation for this part of the process because
I found it easier to troubleshoot placing the planets when they weren't moving.
Now, I will add back the animation and hopefully be completed.
This commit is contained in:
Lauren Dawnkaski 2024-09-30 09:57:34 -04:00
parent ec8d62d745
commit 0ea0c72d16
1 changed files with 90 additions and 59 deletions

View File

@ -59,69 +59,100 @@ def orbit():
left(90) left(90)
circle(200) circle(200)
right(90) right(90)
right(180)
fly(200)
right(180)
def mercury():
fly(60)
for frame in animate(80, loop=True):
sun()
orbit()
with frame.rotate(0, 360):
fly(40)
color("thistle") color("thistle")
fillcolor("thistle") fillcolor("thistle")
begin_fill() begin_fill()
circle(3) circle(3)
end_fill() end_fill()
with frame.rotate(0, 360):
fly(40) def venus():
left(126.869897646)
fly(100)
color("goldenrod") color("goldenrod")
fillcolor("goldenrod") fillcolor("goldenrod")
begin_fill() begin_fill()
circle(8) circle(8)
end_fill() end_fill()
with frame.rotate(0, 360): left(53.1301)
fly(40)
def earth():
left(38.659808)
fly(128.062484749)
color("forest green") color("forest green")
fillcolor("forest green") fillcolor("forest green")
begin_fill() begin_fill()
circle(9) circle(9)
end_fill() end_fill()
with frame.rotate(0, 360): left(51.340191)
fly(40)
def mars():
left(39.805571)
fly(156.204993518)
color("red") color("red")
fillcolor("red") fillcolor("red")
begin_fill() begin_fill()
circle(4) circle(5)
end_fill() end_fill()
with frame.rotate(0, 360): left(50.194428)
fly(40)
def jupiter():
left(40.601294)
fly(184.390889146)
color("peru") color("peru")
fillcolor("peru") fillcolor("peru")
begin_fill() begin_fill()
circle(25) circle(15)
end_fill() end_fill()
with frame.rotate(0, 360): left(49.398705)
fly(40)
def saturn():
left(41.328658)
fly(212.602916255)
color("pale violet red") color("pale violet red")
fillcolor("pale violet red") fillcolor("pale violet red")
begin_fill() begin_fill()
circle(20) circle(13)
end_fill() end_fill()
with frame.rotate(0, 360): left(48.671341)
fly(40)
def uranus():
left(41.663539)
fly(240.831891576)
color("light blue") color("light blue")
fillcolor("light blue") fillcolor("light blue")
begin_fill() begin_fill()
circle(15) circle(11)
end_fill() end_fill()
with frame.rotate(0, 360): left(48.366460)
fly(40)
def neptune():
left(41.987212)
fly(269.072480941)
color("blue") color("blue")
fillcolor("blue") fillcolor("blue")
begin_fill() begin_fill()
circle(15) circle(11)
end_fill() end_fill()
sun()
orbit()
mercury()
venus()
earth()
mars()
jupiter()
saturn()
uranus()
neptune()
done() done()