python酷炫光盘颜色渐变示例程序

"""酷炫光盘,本程序用到了coloradd模块,请在命令提示符下输入以下命令安装:pip install coloradd

"""

import turtle
from coloradd import *

screen = turtle.getscreen()       # 获取屏幕对象
screen.bgcolor("black")           # 设置屏幕背景
screen.delay(0)                   # 设置绘画延时 
screen.setup(480,480)             # 设置画布大小
screen.title("python酷炫光盘颜色渐变示例程序www.lixingqiu.com")

turtle.st()                       # 隐藏海龟
turtle.penup()                    # 抬起笔来
turtle.pensize(5)                 # 画笔宽度 
color=(1,0,0)                     # 初始颜色 

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