colorset命令用法

colorset命令能把一个整数转换成RGB255格式的三元组，这样海龟画图就能识别成颜色了。以下是代码示例：

```>> colorset(0)
(255, 0, 0)
>>> colorset(10)
(255, 42, 0)
>>> colorset(20)
(255, 84, 0)
>>> colorset(30)
(255, 127, 0)

brightset命令用法```

brightset命令用途是设置一个RGB颜色三元组的亮度。它的第二个参数为一个从0到1的小数，值越大越亮！以下是代码示例：

```>>> brightset(c,0.1)
(51, 0, 0)
>>> brightset(c,0.2)
(102, 0, 0)
>>> brightset(c,0.3)
(153, 0, 0)
>>> brightset(c,0.5)
(255, 0, 0)
>>> brightset(c,0.8)
(255, 153, 153)
>>>

saturationset命令用法```

saturationset命令的用途是设置一种RGB颜色三元组的饱和度。它的第二个参数为一个从0到1的小数，值越大饱和度越高！以下是代码示例：

```>>> saturationset(c,0.1)
(140, 114, 114)
>>> saturationset(c,0.2)
(153, 102, 102)
>>> saturationset(c,0.3)
(165, 89, 89)
>>> saturationset(c,0.8)
(229, 25, 25)
>>>

lerpcolor线性颜色插值命令用法示例：

color1为第一个颜色，color2为第二个颜色，amt表示线性比例，从0.0到1.0的值。

```import turtle

turtle.penup()
turtle.bk(200)
turtle.colormode(255)

fromC = (255,0,0)
toC = (0,0,255)
colorA = lerpcolor(fromC,toC,0.2)
colorB = lerpcolor(fromC,toC,0.4)
colorC = lerpcolor(fromC,toC,0.6)
colorD = lerpcolor(fromC,toC,0.8)

cs = [fromC,colorA,colorB,colorC,colorD,toC]
for c in cs:
turtle.dot(50,c)
turtle.fd(100)
```