generated from mwc/project_drawing
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
This commit is contained in:
parent
be09d3efec
commit
ec8d62d745
50
drawing.py
50
drawing.py
|
@ -7,6 +7,7 @@
|
||||||
from turtle import *
|
from turtle import *
|
||||||
from superturtle.animation import animate
|
from superturtle.animation import animate
|
||||||
|
|
||||||
|
bgcolor("black")
|
||||||
|
|
||||||
def fly(distance):
|
def fly(distance):
|
||||||
penup()
|
penup()
|
||||||
|
@ -15,63 +16,108 @@ def fly(distance):
|
||||||
|
|
||||||
|
|
||||||
def sun():
|
def sun():
|
||||||
|
color("yellow")
|
||||||
fillcolor("yellow")
|
fillcolor("yellow")
|
||||||
begin_fill()
|
begin_fill()
|
||||||
fly(40)
|
fly(40)
|
||||||
left(90)
|
left(90)
|
||||||
circle(40)
|
circle(40)
|
||||||
|
right (90)
|
||||||
end_fill()
|
end_fill()
|
||||||
|
|
||||||
|
def orbit():
|
||||||
|
color("white")
|
||||||
|
fly(20)
|
||||||
left(90)
|
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):
|
for frame in animate(80, loop=True):
|
||||||
sun()
|
sun()
|
||||||
|
orbit()
|
||||||
with frame.rotate(0, 360):
|
with frame.rotate(0, 360):
|
||||||
fly(40)
|
fly(40)
|
||||||
|
color("thistle")
|
||||||
fillcolor("thistle")
|
fillcolor("thistle")
|
||||||
begin_fill()
|
begin_fill()
|
||||||
circle(3)
|
circle(3)
|
||||||
end_fill()
|
end_fill()
|
||||||
with frame.rotate(0, 360):
|
with frame.rotate(0, 360):
|
||||||
fly(40)
|
fly(40)
|
||||||
|
color("goldenrod")
|
||||||
fillcolor("goldenrod")
|
fillcolor("goldenrod")
|
||||||
begin_fill()
|
begin_fill()
|
||||||
circle(8)
|
circle(8)
|
||||||
end_fill()
|
end_fill()
|
||||||
with frame.rotate(0, 360):
|
with frame.rotate(0, 360):
|
||||||
fly(40)
|
fly(40)
|
||||||
|
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):
|
with frame.rotate(0, 360):
|
||||||
fly(40)
|
fly(40)
|
||||||
|
color("red")
|
||||||
fillcolor("red")
|
fillcolor("red")
|
||||||
begin_fill()
|
begin_fill()
|
||||||
circle(4)
|
circle(4)
|
||||||
end_fill()
|
end_fill()
|
||||||
with frame.rotate(0, 360):
|
with frame.rotate(0, 360):
|
||||||
fly(40)
|
fly(40)
|
||||||
|
color("peru")
|
||||||
fillcolor("peru")
|
fillcolor("peru")
|
||||||
begin_fill()
|
begin_fill()
|
||||||
circle(25)
|
circle(25)
|
||||||
end_fill()
|
end_fill()
|
||||||
with frame.rotate(0, 360):
|
with frame.rotate(0, 360):
|
||||||
fly(40)
|
fly(40)
|
||||||
|
color("pale violet red")
|
||||||
fillcolor("pale violet red")
|
fillcolor("pale violet red")
|
||||||
begin_fill()
|
begin_fill()
|
||||||
circle(20)
|
circle(20)
|
||||||
end_fill()
|
end_fill()
|
||||||
with frame.rotate(0, 360):
|
with frame.rotate(0, 360):
|
||||||
fly(40)
|
fly(40)
|
||||||
|
color("light blue")
|
||||||
fillcolor("light blue")
|
fillcolor("light blue")
|
||||||
begin_fill()
|
begin_fill()
|
||||||
circle(15)
|
circle(15)
|
||||||
end_fill()
|
end_fill()
|
||||||
with frame.rotate(0, 360):
|
with frame.rotate(0, 360):
|
||||||
fly(40)
|
fly(40)
|
||||||
fillcolor("midnight blue")
|
color("blue")
|
||||||
|
fillcolor("blue")
|
||||||
begin_fill()
|
begin_fill()
|
||||||
circle(15)
|
circle(15)
|
||||||
end_fill()
|
end_fill()
|
||||||
|
|
Loading…
Reference in New Issue