generated from mwc/project_drawing
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:
parent
ec8d62d745
commit
0ea0c72d16
149
drawing.py
149
drawing.py
|
@ -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)
|
||||||
|
color("thistle")
|
||||||
|
fillcolor("thistle")
|
||||||
|
begin_fill()
|
||||||
|
circle(3)
|
||||||
|
end_fill()
|
||||||
|
|
||||||
|
def venus():
|
||||||
|
left(126.869897646)
|
||||||
|
fly(100)
|
||||||
|
color("goldenrod")
|
||||||
|
fillcolor("goldenrod")
|
||||||
|
begin_fill()
|
||||||
|
circle(8)
|
||||||
|
end_fill()
|
||||||
|
left(53.1301)
|
||||||
|
|
||||||
|
def earth():
|
||||||
|
left(38.659808)
|
||||||
|
fly(128.062484749)
|
||||||
|
color("forest green")
|
||||||
|
fillcolor("forest green")
|
||||||
|
begin_fill()
|
||||||
|
circle(9)
|
||||||
|
end_fill()
|
||||||
|
left(51.340191)
|
||||||
|
|
||||||
|
def mars():
|
||||||
|
left(39.805571)
|
||||||
|
fly(156.204993518)
|
||||||
|
color("red")
|
||||||
|
fillcolor("red")
|
||||||
|
begin_fill()
|
||||||
|
circle(5)
|
||||||
|
end_fill()
|
||||||
|
left(50.194428)
|
||||||
|
|
||||||
|
def jupiter():
|
||||||
|
left(40.601294)
|
||||||
|
fly(184.390889146)
|
||||||
|
color("peru")
|
||||||
|
fillcolor("peru")
|
||||||
|
begin_fill()
|
||||||
|
circle(15)
|
||||||
|
end_fill()
|
||||||
|
left(49.398705)
|
||||||
|
|
||||||
|
def saturn():
|
||||||
|
left(41.328658)
|
||||||
|
fly(212.602916255)
|
||||||
|
color("pale violet red")
|
||||||
|
fillcolor("pale violet red")
|
||||||
|
begin_fill()
|
||||||
|
circle(13)
|
||||||
|
end_fill()
|
||||||
|
left(48.671341)
|
||||||
|
|
||||||
|
def uranus():
|
||||||
|
left(41.663539)
|
||||||
|
fly(240.831891576)
|
||||||
|
color("light blue")
|
||||||
|
fillcolor("light blue")
|
||||||
|
begin_fill()
|
||||||
|
circle(11)
|
||||||
|
end_fill()
|
||||||
|
left(48.366460)
|
||||||
|
|
||||||
|
def neptune():
|
||||||
|
left(41.987212)
|
||||||
|
fly(269.072480941)
|
||||||
|
color("blue")
|
||||||
|
fillcolor("blue")
|
||||||
|
begin_fill()
|
||||||
|
circle(11)
|
||||||
|
end_fill()
|
||||||
|
|
||||||
|
sun()
|
||||||
|
orbit()
|
||||||
|
mercury()
|
||||||
|
venus()
|
||||||
|
earth()
|
||||||
|
mars()
|
||||||
|
jupiter()
|
||||||
|
saturn()
|
||||||
|
uranus()
|
||||||
|
neptune()
|
||||||
|
|
||||||
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)
|
|
||||||
color("blue")
|
|
||||||
fillcolor("blue")
|
|
||||||
begin_fill()
|
|
||||||
circle(15)
|
|
||||||
end_fill()
|
|
||||||
done()
|
done()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue