纯画笔月球动画

python pure pen animation moon纯画笔月球动画

python pure pen animation moon纯画笔月球动画

"""
   纯画笔月球动画
"""

from turtle import *

def draw_circle(t,color,radius):
    """
       用海龟t画颜色为color半径为radius的圆
    """
    t.color(color)
    t.begin_fill()
    t.circle(radius)
    t.end_fill()

radius = 100
screen = Screen()
screen.tracer(0,0)
screen.bgcolor('black')

t = Turtle(visible=False)
t.penup()
start_x,start_y = 200,0
dx = -0.1

You must log in to read the rest of this article. Please log in or register as a user.