python画兔子代码,python语言绘制小兔子源代码怎么运行

python画兔子代码


2023年农历新年,又称兔年,与兔子相关的随处可见,那么程序员如何迎接农历新年呢,用python画一个兔子?安排起来。

python画兔子代码怎么运行

1、安装python环境;

2、在桌面创建文本文件,将下面的代码复制粘贴进去;

3、将创建文件的格式修改为.py

4、双击运行就可以啦!

 

python语言绘制小兔子源代码


from turtle import *
import time

def set_start(x, y, w=0.5, c='black'):
    penup()
    setx(x)
    sety(y)
    setheading(towards(0, 0))
    width(w)
    pencolor(c)
    pendown()
    speed(0)


def left_rotate(time, angle, length):
    for i in range(time):
        left(angle)
        forward(length)


def right_rotate(time, angle, length):
    for i in range(time):
        right(angle)
        forward(length)


def fill_color(color):
    def decorator_all(func):
        def wrapper(*args, **kwargs):
            begin_fill()
            func(*args, **kwargs)
            fillcolor(color)
            end_fill()
        return wrapper
    return decorator_all


def fill_color_patch(x, y, c='white'):
    set_start(x, y, 1, c=c)
    forward(1)


def draw_circle(radius, color, color2=''):
    if color2 == '':
        color2 = color
    penup()
    setheading(towards(0, 0))
    right(90)
    pencolor(color)
    pendown()
    begin_fill()
    circle(radius)
    fillcolor(color2)
    end_fill()


def draw_ear():
    # 左侧耳朵
    fill_color_patch(-50, 86, c='#9392B3')
    begin_fill()
    set_start(-50, 86, w=4, c='#9392B3')
    right_rotate(1, 174, 10)
    right_rotate(5, 5, 15)
    right_rotate(4, 6, 15)
    width(3)
    right_rotate(2, 4, 13)
    right_rotate(2, 5, 10)
    left_rotate(3, 9, 12)
    width(4)
    right_rotate(1, 128, 10)
    right_rotate(3, 9.5, 31)
    right_rotate(5, 7, 25)
    right_rotate(1, 80, 10)
    left_rotate(3, 7, 12)
    fillcolor('white')
    end_fill()
    width(3)
    right_rotate(1, 160, 5)
    left_rotate(1, 20, 10)
    left_rotate(3, 8, 20)
    width(4)
    left_rotate(1, 2, 15)
    left_rotate(5, 5, 15)
    left_rotate(4, 3, 15)
    fill_color_patch(-35, 105, c='#E6E6FA')
    begin_fill()
    set_start(-35, 105, w=1, c='#E6E6FA')
    right_rotate(1, 170, 10)
    right_rotate(3, 8, 25)
    right_rotate(3, 11, 23)
    right_rotate(1, 130, 20)
    right_rotate(5, 8, 25)
    goto(-35, 105)
    fillcolor('#E6E6FA')
    end_fill()
    fill_color_patch(-32, 110, c='#D6D2F6')
    begin_fill()
    set_start(-32, 110, w=1, c='#D6D2F6')
    right_rotate(1, 170, 10)
    right_rotate(3, 7, 23)
    right_rotate(3, 11, 20)
    right_rotate(1, 131, 20)
    right_rotate(5, 8, 23)
    goto(-32, 110)
    fillcolor('#D6D2F6')
    end_fill()
    set_start(-48.87, 85.22, w=3, c='#9392B3')
    setheading(195.67)
    right_rotate(1, 160, 5)
    left_rotate(1, 20, 10)
    left_rotate(3, 8, 20)
    width(4)
    left_rotate(1, 2, 15)
    left_rotate(5, 5, 15)
    left_rotate(4, 3, 15)
    # 右侧耳朵
    fill_color_patch(90, 67, c='#9392B3')
    begin_fill()
    set_start(90, 67, w=4, c='#9392B3')
    left_rotate(1, 180, 10)
    left_rotate(3, 5, 13)
    left_rotate(2, 8, 15)
    left_rotate(3, 6, 15)
    left_rotate(4, 5, 15)
    right_rotate(4, 5.5, 8)
    left_rotate(1, 132, 15)
    left_rotate(2, 8, 18)
    left_rotate(5, 5, 18)
    left_rotate(4, 4, 17)
    left_rotate(1, 70, 5)
    right_rotate(3, 5, 8)
    goto(90, 67)
    fillcolor('white')
    end_fill()
    left_rotate(1, 180, 5)
    right_rotate(1, 63, 10)
    left_rotate(4, 2, 12)
    right_rotate(3, 3, 16)
    width(3)
    right_rotate(3, 6, 15)
    right_rotate(4, 5, 13.5)
    fill_color_patch(90, 80, c='#E6E6FA')
    begin_fill()
    set_start(90, 80, w=1, c='#E6E6FA')
    left_rotate(1, 175, 10)
    left_rotate(4, 10, 12)
    left_rotate(4, 7, 15)
    right_rotate(4, 5, 9)
    left_rotate(1, 150, 15)
    left_rotate(4, 7.5, 15)
    left_rotate(2, 3, 15)
    right_rotate(2, 2, 10)
    left_rotate(2, 7, 12)
    goto(90, 80)
    fillcolor('#E6E6FA')
    end_fill()
    fill_color_patch(90, 85, c='#D6D2F6')
    begin_fill()
    set_start(90, 85, w=1, c='#D6D2F6')
    left_rotate(1, 175, 10)
    left_rotate(4, 10, 10)
    left_rotate(4, 6, 15)
    right_rotate(4, 5, 7)
    left_rotate(1, 153, 15)
    left_rotate(3, 9.5, 15)
    left_rotate(2, 2, 15)
    right_rotate(3, 0, 10)
    goto(90, 85)
    fillcolor('#D6D2F6')
    end_fill()
    set_start(90.00, 67.00, w=4, c='#9392B3')
    setheading(327.67)
    left_rotate(1, 180, 5)
    right_rotate(1, 63, 10)
    left_rotate(4, 2, 12)
    right_rotate(3, 3, 16)
    width(3)
    right_rotate(3, 6, 15)
    right_rotate(4, 5, 13.5)


def draw_cat():
    set_start(34, 141, w=1, c='#C65B03')
    draw_circle(5, '#C65B03', color2='')
    set_start(33.5, 139, w=1, c='#ED9C22')
    draw_circle(3, '#ED9C22', color2='')
    fill_color_patch(-23, 90, c='#850009')
    begin_fill()
    set_start(-23, 90, w=2, c='#850009')
    left_rotate(1, 80, 10)
    right_rotate(6, 4, 14.2)
    left_rotate(1, 105, 9)
    left_rotate(2, 8, 8)
    width(3)
    left_rotate(11, 12, 10)
    width(2)
    left_rotate(2, 12, 12)
    goto(-23, 90)
    fillcolor('#B80705')
    end_fill()
    fill_color_patch(46, 110, c='#850009')
    begin_fill()
    set_start(46, 110, w=3, c='#850009')
    right_rotate(1, 145, 9)
    left_rotate(2, 16, 8)
    width(2)
    left_rotate(3, 22, 2)
    left_rotate(3, 12, 9)
    goto(46, 110)
    fillcolor('#E50703')
    end_fill()
    fill_color_patch(-23, 90, c='#BE7728')
    begin_fill()
    set_start(-23, 90, w=2, c='#BE7728')
    left_rotate(1, 80, 10)
    right_rotate(6, 4, 14.2)
    left_rotate(1, 105, 9)
    left_rotate(2, 8, 8)
    width(3)
    left_rotate(1, 55, 10)
    left_rotate(2, 5, 15)
    left_rotate(3, 6.5, 16)
    width(2)
    left_rotate(1, 55, 10)
    left_rotate(2, 10, 8)
    goto(-23, 90)
    fillcolor('#E4C127')
    end_fill()
    fill_color_patch(20, 98, c='#DC960D')
    begin_fill()
    set_start(20, 98, w=1, c='#DC960D')
    left_rotate(1, 75, 5)
    left_rotate(2, 12, 5)
    left_rotate(3, 33, 4)
    left_rotate(3, 35, 1)
    right_rotate(3, 28, 2)
    left_rotate(3, 35, 3)
    right_rotate(3, 30, 2)
    left_rotate(3, 45, 2)
    left_rotate(1, 30, 2)
    right_rotate(3, 25, 1)
    left_rotate(3, 45, 2)
    left_rotate(1, 30, 2)
    goto(20, 98)
    fillcolor('#DC960D')
    end_fill()
    fill_color_patch(22, 99, c='#839D76')
    begin_fill()
    set_start(22, 99, w=1, c='#839D76')
    left_rotate(1, 25, 0)
    left_rotate(3, 30, 4)
    left_rotate(3, 30, 2)
    left_rotate(3, 30, 4)
    left_rotate(3, 30, 2)
    fillcolor('#839D76')
    end_fill()
    begin_fill()
    set_start(24, 99, w=1, c='#398640')
    left_rotate(1, 25, 0)
    left_rotate(3, 30, 2.5)
    left_rotate(3, 30, 2)
    left_rotate(3, 30, 2.5)
    left_rotate(3, 30, 2)
    fillcolor('#398640')
    end_fill()
    begin_fill()
    set_start(25.5, 101, w=1, c='#0ADBC9')
    left_rotate(1, 25, 0)
    left_rotate(3, 30, 1.8)
    left_rotate(3, 30, 1)
    left_rotate(3, 30, 1.8)
    left_rotate(3, 30, 1)
    fillcolor('#0ADBC9')
    end_fill()


def draw_head():
    fill_color_patch(46, 83, c='#9392B3')
    begin_fill()
    set_start(46, 83, w=4, c='#9392B3')
    left_rotate(1, 105, 10)
    right_rotate(3, 8, 20)
    right_rotate(3, 10, 22)
    right_rotate(1, 13, 15)
    left_rotate(3, 3, 9)
    left_rotate(2, 12, 6)
    left_rotate(1, 30, 5)
    left_rotate(2, 15, 3)
    right_rotate(1, 135, 8)
    right_rotate(3, 8, 8)
    left_rotate(1, 140, 8)
    left_rotate(2, 10, 8)
    right_rotate(1, 130, 8)
    right_rotate(5, 7.5, 7.5)
    left_rotate(1, 140, 5)
    left_rotate(2, 8, 5)
    right_rotate(1, 125, 5)
    right_rotate(5, 8, 6)
    goto(125, -130)
    set_start(125, -130, w=4, c='#9392B3')
    left_rotate(1, 78, 10)
    right_rotate(3, 5, 18)
    right_rotate(4, 6, 21)
    right_rotate(5, 5, 18)
    right_rotate(3, 7, 20)
    left_rotate(1, 15, 10)
    right_rotate(2, 5, 6)
    right_rotate(4, 7, 6.5)
    right_rotate(1, 130, 5)
    left_rotate(3, 11, 4.5)
    left_rotate(1, 140, 7)
    right_rotate(3, 12, 6)
    right_rotate(5, 5, 5)
    right_rotate(1, 130, 5)
    left_rotate(3, 5, 4)
    left_rotate(3, 13, 3)
    left_rotate(1, 120, 8)
    right_rotate(5, 10, 6.5)
    right_rotate(1, 95, 5)
    left_rotate(3, 12, 5)
    left_rotate(3, 10, 10)
    right_rotate(3, 5, 12)
    right_rotate(3, 2, 5)
    right_rotate(3, 5, 12)
    right_rotate(4, 5, 13)
    left_rotate(3, 6, 6)
    left_rotate(5, 13.5, 7)
    right_rotate(1, 158, 8)
    right_rotate(3, 7, 7)
    right_rotate(5, 15, 5)
    fillcolor('white')
    end_fill()


def draw_face():
    fill_color_patch(46, 80, c='#E6E6F0')
    begin_fill()
    set_start(46, 80, w=1, c='#E6E6F0')
    left_rotate(1, 105, 10)
    right_rotate(3, 9, 20)
    right_rotate(3, 10, 22)
    right_rotate(1, 10, 15)
    left_rotate(3, 6, 9)
    left_rotate(2, 10, 6)
    right_rotate(3, 30, 1)
    right_rotate(3, 6, 6)
    left_rotate(3, 45, 5)
    left_rotate(2, 8, 6)
    right_rotate(3, 42, 1)
    right_rotate(5, 7, 5.5)
    left_rotate(3, 45, 5)
    left_rotate(1, 15, 5)
    right_rotate(1, 130, 5)
    right_rotate(4, 8, 5)
    left_rotate(1, 30, 10)
    right_rotate(3, 7, 18)
    right_rotate(4, 6, 21)
    right_rotate(5, 5, 18)
    right_rotate(3, 7, 17)
    left_rotate(1, 15, 10)
    right_rotate(4, 4, 5.5)
    right_rotate(1, 125, 5)
    left_rotate(2, 11, 4)
    left_rotate(3, 40, 4)
    right_rotate(4, 8, 7)
    right_rotate(1, 140, 5)
    left_rotate(3, 10, 4)
    left_rotate(4, 33, 5)
    right_rotate(5, 8, 5)
    right_rotate(1, 100, 5)
    left_rotate(3, 13, 5)
    left_rotate(3, 7, 10)
    right_rotate(3, 4, 12)
    right_rotate(3, 2, 4)
    right_rotate(3, 5, 10)
    right_rotate(4, 5.5, 13)
    left_rotate(3, 6, 8)
    left_rotate(5, 11, 6)
    right_rotate(1, 150, 8)
    right_rotate(4, 12, 7)
    goto(46, 80)
    fillcolor('#E6E6F0')
    end_fill()
    fill_color_patch(46, 75, c='#F0F0FA')
    begin_fill()
    set_start(46, 75, w=1, c='#F0F0FA')
    left_rotate(1, 105, 10)
    right_rotate(3, 12, 20)
    right_rotate(3, 12, 8)
    right_rotate(3, 20, 5)
    left_rotate(3, 10, 9)
    left_rotate(5, 17, 15)
    right_rotate(5, 18, 5)
    right_rotate(8, 10, 21)
    right_rotate(3, 8, 20)
    right_rotate(6, 15, 15)
    left_rotate(3, 10, 10)
    left_rotate(4, 18, 7)
    right_rotate(5, 20, 5)
    right_rotate(6, 9, 20)
    goto(46, 75)
    fillcolor('#F0F0FA')
    end_fill()
    fill_color_patch(90, 30, c='white')
    begin_fill()
    set_start(90, 30, w=1, c='white')
    left_rotate(1, 120, 5)
    right_rotate(6, 20, 5)
    left_rotate(3, 10, 9)
    left_rotate(6, 18, 15)
    right_rotate(6, 20, 5)
    right_rotate(7, 7.5, 21)
    right_rotate(3, 13, 20)
    right_rotate(6, 18, 14)
    left_rotate(3, 18, 9)
    left_rotate(4, 20, 9)
    right_rotate(7, 20, 5.5)
    right_rotate(2, 15, 4.5)
    right_rotate(3, 10, 13)
    right_rotate(3, 12, 10)
    right_rotate(3, 2, 12)
    left_rotate(6, 28, 4)
    right_rotate(3, 10, 20)
    right_rotate(5, 10, 10)
    goto(90, 30)
    fillcolor('white')
    end_fill()
    set_start(10.94, 89.73, w=4, c='#9392B3')
    setheading(354.88)
    left_rotate(3, 6, 6)
    left_rotate(5, 13.5, 7)
    right_rotate(1, 158, 8)
    right_rotate(3, 7, 7)
    right_rotate(5, 15, 5)


def draw_mouth():
    begin_fill()
    set_start(-22, -115, w=2, c='#C8C3E2')
    right_rotate(1, 110, 5)
    left_rotate(1, 5, 5)
    width(3)
    left_rotate(2, 16, 5)
    width(2)
    left_rotate(1, 12, 4)
    left_rotate(1, 12, 4)
    set_start(-20, -112, w=4, c='#9790B5')
    right_rotate(1, 106, 5)
    left_rotate(1, 5, 5)
    left_rotate(2, 15, 4)
    width(3)
    left_rotate(1, 18, 4)
    width(2)
    left_rotate(1, 20, 4)
    fill_color_patch(-20, -68, c='#ABA9B4')
    begin_fill()
    set_start(-20, -68, w=1, c='#ABA9B4')
    left_rotate(1, 170, 5)
    left_rotate(3, 5, 5)
    left_rotate(5, 20, 7.2)
    left_rotate(5, 15, 5)
    left_rotate(4, 6, 5)
    goto(-20, -68)
    fillcolor('#ABA9B4')
    end_fill()
    fill_color_patch(-18, -70, c='#BC958C')
    begin_fill()
    set_start(-18, -70, w=1, c='#BC958C')
    left_rotate(1, 170, 5)
    left_rotate(3, 7, 5)
    left_rotate(5, 20, 6.2)
    left_rotate(4, 18.5, 6.2)
    left_rotate(3, 10, 5)
    goto(-18, -70)
    fillcolor('#550900')
    end_fill()
    fill_color_patch(-22, -90, c='#D04C36')
    begin_fill()
    set_start(-22, -90, w=1, c='#D04C36')
    right_rotate(1, 152, 5)
    left_rotate(3, 17, 4.8)
    left_rotate(5, 14.5, 4.5)
    left_rotate(1, 85, 5)
    left_rotate(5, 14, 5.8)
    fillcolor('#D04C36')
    end_fill()
    fill_color_patch(-15, -65, c='#DAB4C5')
    begin_fill()
    set_start(-15, -65, w=1, c='#DAB4C5')
    right_rotate(1, 170, 5)
    left_rotate(2, 7, 4.5)
    left_rotate(2, 30, 2)
    left_rotate(3, 6, 5.5)
    left_rotate(2, 32, 2)
    left_rotate(3, 8, 5)
    goto(-15, -65)
    fillcolor('#DAB4C5')
    end_fill()
    fill_color_patch(-14, -6, c='#AAA6AA')
    begin_fill()
    set_start(-14, -65, w=1.5, c='#AAA6AA')
    right_rotate(1, 155, 5)
    right_rotate(1, 10, 4)
    left_rotate(4, 18, 2)
    left_rotate(3, 6, 4)
    left_rotate(2, 30, 2)
    left_rotate(2, 8, 5)
    goto(-14, -65)
    fillcolor('white')
    end_fill()
    set_start(-3, -78, w=1.5, c='#AAA6AA')
    right_rotate(3, 3, 5)
    fill_color_patch(-2, -62, c='#ADA5BC')
    begin_fill()
    set_start(-2, -62, w=2, c='#ADA5BC')
    right_rotate(1, 150, 4)
    width(3)
    left_rotate(2, 12, 5)
    left_rotate(2, 18, 4)
    left_rotate(2, 16, 5.5)
    width(2)
    left_rotate(1, 16, 5.5)
    left_rotate(3, 23, 5)
    set_start(-2, -62, w=2, c='#ADA5BC')
    left_rotate(1, 135, 4)
    width(3)
    right_rotate(2, 13, 5)
    right_rotate(2, 18, 4)
    right_rotate(3, 16, 5)
    right_rotate(1, 22, 5)
    width(2)
    right_rotate(2, 22, 5)
    fillcolor('white')
    end_fill()
    fill_color_patch(0, -60, c='#F0F0FA')
    begin_fill()
    set_start(0, -60, w=1, c='#F0F0FA')
    right_rotate(1, 140, 5)
    left_rotate(2, 12, 5)
    left_rotate(2, 20, 4)
    left_rotate(2, 16, 4)
    left_rotate(2, 28, 5)
    left_rotate(1, 100, 5)
    right_rotate(5, 11, 9.8)
    left_rotate(1, 95, 5)
    left_rotate(2, 30, 4.5)
    left_rotate(2, 18, 4)
    left_rotate(2, 17, 4.5)
    left_rotate(2, 10, 5)
    goto(0, -60)
    fillcolor('#F0F0FA')
    end_fill()
    fill_color_patch(0, -60, c='#F0F0FA')
    begin_fill()
    set_start(0, -60, w=1, c='#F0F0FA')
    right_rotate(1, 140, 5)
    left_rotate(2, 12, 5)
    left_rotate(2, 20, 4)
    left_rotate(2, 16, 4)
    left_rotate(2, 28, 3)
    left_rotate(1, 110, 5)
    right_rotate(5, 10, 4)
    goto(0, -60)
    left_rotate(1, 20, 5)
    right_rotate(5, 8, 5)
    left_rotate(1, 130, 5)
    left_rotate(2, 22, 4)
    left_rotate(2, 18, 4)
    left_rotate(2, 16, 4)
    left_rotate(2, 8, 4)
    goto(0, -60)
    fillcolor('#E6E6F0')
    end_fill()


def draw_eye():
    # 左眼
    fill_color_patch(-40, -30, c='#6A654C')
    begin_fill()
    set_start(-40, -30, w=1, c='#6A654C')
    right_rotate(1, 175, 10)
    right_rotate(2, 12, 9)
    right_rotate(4, 12, 10)
    right_rotate(3, 15.5, 7)
    right_rotate(3, 10, 8.8)
    right_rotate(1, 35, 4)
    left_rotate(1, 90, 5)
    right_rotate(3, 16, 4)
    right_rotate(1, 145, 4)
    left_rotate(3, 15, 4)
    left_rotate(3, 16, 2)
    right_rotate(3, 14, 10)
    right_rotate(3, 17, 10)
    right_rotate(3, 10, 9)
    goto(-40, -30)
    fillcolor('#6A654C')
    end_fill()
    fill_color_patch(-42, -30, c='#6A654C')
    begin_fill()
    set_start(-42, -30, w=1, c='#6A654C')
    right_rotate(1, 180, 10)
    right_rotate(2, 12, 9)
    right_rotate(4, 13, 10)
    right_rotate(3, 17, 7)
    right_rotate(3, 4, 5)
    right_rotate(1, 40, 5)
    right_rotate(3, 12, 10)
    right_rotate(3, 18, 10)
    right_rotate(3, 11, 10)
    goto(-42, -30)
    fillcolor('white')
    end_fill()
    fill_color_patch(-56, -25, c='#2E0601')
    begin_fill()
    set_start(-56, -25, w=1, c='#2E0601')
    right_rotate(1, 145, 5)
    right_rotate(2, 16, 5)
    right_rotate(5, 14, 6)
    right_rotate(3, 17, 6)
    right_rotate(3, 11, 5)
    right_rotate(3, 13, 6)
    right_rotate(3, 16, 6)
    right_rotate(3, 15, 6)
    right_rotate(3, 13, 5)
    goto(-56, -25)
    fillcolor('#2E0601')
    end_fill()
    fill_color_patch(-59, -25, c='#B80C01')
    begin_fill()
    set_start(-59, -25, w=1, c='#B80C01')
    right_rotate(1, 150, 5)
    right_rotate(2, 18, 5)
    right_rotate(5, 14, 5)
    right_rotate(3, 16, 6)
    right_rotate(4, 14, 5)
    right_rotate(3, 17.5, 6)
    right_rotate(3, 14, 5)
    right_rotate(3, 13, 5)
    goto(-59, -25)
    fillcolor('#B80C01')
    end_fill()
    set_start(-87, -15, w=1, c='black')
    draw_circle(12, 'black')
    set_start(-90.3, -4.5, w=1, c='white')
    draw_circle(6.5, 'white')
    set_start(-81, -26, w=1, c='white')
    draw_circle(3, 'white')
    # 右眼
    fill_color_patch(53, -51, c='#6A654C')
    begin_fill()
    set_start(53, -51, w=1, c='#6A654C')
    left_rotate(1, 150, 5)
    left_rotate(2, 12, 5)
    left_rotate(4, 13.5, 10)
    left_rotate(3, 13, 7)
    left_rotate(3, 10.5, 9.5)
    left_rotate(1, 30, 3)
    right_rotate(1, 80, 3)
    left_rotate(3, 16, 4)
    left_rotate(1, 145, 4)
    right_rotate(3, 16, 3)
    right_rotate(3, 16, 2)
    left_rotate(3, 15, 10)
    left_rotate(3, 17, 10)
    left_rotate(3, 12, 9)
    goto(53, -51)
    fillcolor('#6A654C')
    end_fill()
    fill_color_patch(56, -50, c='#6A654C')
    begin_fill()
    set_start(56, -50, w=1, c='#6A654C')
    left_rotate(1, 160, 5)
    left_rotate(2, 12, 9)
    left_rotate(4, 15, 10)
    left_rotate(3, 16, 7)
    left_rotate(3, 4, 5)
    left_rotate(1, 41, 4.5)
    left_rotate(3, 13, 11)
    left_rotate(3, 18, 10)
    left_rotate(3, 14.5, 9)
    goto(56, -50)
    fillcolor('white')
    end_fill()
    fill_color_patch(67, -50, c='#2E0601')
    begin_fill()
    set_start(67, -50, w=1, c='#2E0601')
    left_rotate(1, 148, 5)
    left_rotate(2, 13, 5)
    left_rotate(5, 14, 6)
    left_rotate(3, 16, 6)
    left_rotate(3, 10, 5)
    left_rotate(3, 17, 6)
    left_rotate(3, 15, 6)
    left_rotate(3, 12.5, 6)
    left_rotate(3, 12, 4)
    goto(67, -50)
    fillcolor('#2E0601')
    end_fill()
    fill_color_patch(70, -50, c='#2E0601')
    begin_fill()
    set_start(70, -50, w=1, c='#2E0601')
    left_rotate(1, 150, 5)
    left_rotate(2, 16, 5)
    left_rotate(5, 12, 5)
    left_rotate(3, 18, 6)
    left_rotate(4, 14, 5)
    left_rotate(3, 16, 6)
    left_rotate(3, 15, 6)
    left_rotate(3, 13, 5)
    goto(70, -50)
    fillcolor('#B80C01')
    end_fill()
    set_start(101, -49, w=1, c='black')
    draw_circle(12, 'black')
    set_start(88.8, -37, w=1, c='white')
    draw_circle(6.5, 'white')
    set_start(91, -57, w=1, c='white')
    draw_circle(3, 'white')


def draw_eyebrow():
    set_start(-114.42, 43.96, w=2, c='#9392B3')
    setheading(50.88)
    right_rotate(3, 10, 10)
    right_rotate(5, 9, 10)
    right_rotate(3, 10, 13)
    right_rotate(3, 10, 10)
    right_rotate(3, 2, 12)
    left_rotate(6, 28, 3.5)
    right_rotate(3, 10, 20)
    right_rotate(5, 10, 12)
    right_rotate(4, 11, 11)


def draw_nose():
    fill_color_patch(0, -28, c='#361C12')
    begin_fill()
    set_start(0, -28, w=1, c='#361C12')
    left_rotate(1, 105, 5)
    left_rotate(2, 12, 3)
    left_rotate(7, 15, 3)
    left_rotate(2, 10, 5)
    left_rotate(3, 15, 4)
    left_rotate(4, 21, 5)
    left_rotate(3, 15, 2)
    left_rotate(3, 7, 3.5)
    fillcolor('#361C12')
    end_fill()
    fill_color_patch(0, -32, c='#6A2807')
    begin_fill()
    set_start(0, -32, w=1, c='#6C3D25')
    left_rotate(1, 105, 4)
    left_rotate(2, 14, 3)
    left_rotate(6, 17, 2)
    left_rotate(2, 8, 4)
    left_rotate(3, 14, 3.2)
    left_rotate(4, 21, 3)
    left_rotate(3, 15, 2.5)
    left_rotate(3, 7, 2.5)
    fillcolor('#6A2807')
    end_fill()
    fill_color_patch(10, -39, c='#B14D14')
    begin_fill()
    set_start(9, -39, w=1, c='#B14D14')
    right_rotate(1, 30, 0)
    left_rotate(3, 30, 1.5)
    left_rotate(3, 30, 1)
    left_rotate(3, 30, 1.5)
    left_rotate(3, 30, 1)
    fillcolor('#B14D14')
    end_fill()


def draw_cheek():
    # 脸蛋
    fill_color_patch(-77, -57, c='#FCE5E7')
    begin_fill()
    set_start(-77, -57, w=1, c='#FCE5E7')
    left_rotate(1, 70, 0)
    left_rotate(3, 30, 9)
    left_rotate(3, 30, 6)
    left_rotate(3, 30, 9)
    left_rotate(3, 30, 6)
    fillcolor('#FCE5E7')
    end_fill()
    fill_color_patch(-80, -59, c='#FDBFC8')
    begin_fill()
    set_start(-80, -59, w=1, c='#FDBFC8')
    left_rotate(1, 70, 0)
    left_rotate(3, 30, 7)
    left_rotate(3, 30, 4)
    left_rotate(3, 30, 7)
    left_rotate(3, 30, 4)
    fillcolor('#FDBFC8')
    end_fill()
    fill_color_patch(94, -87, c='#FCE5E7')
    begin_fill()
    set_start(94, -87, w=1, c='#FCE5E7')
    right_rotate(1, 25, 0)
    left_rotate(3, 30, 10)
    left_rotate(3, 30, 7)
    left_rotate(3, 30, 10)
    left_rotate(3, 30, 7)
    fillcolor('#FCE5E7')
    end_fill()
    fill_color_patch(90, -89, c='#FDBFC8')
    begin_fill()
    set_start(90, -89, w=1, c='#FDBFC8')
    right_rotate(1, 25, 0)
    left_rotate(3, 30, 7)
    left_rotate(3, 30, 5)
    left_rotate(3, 30, 7)
    left_rotate(3, 30, 5)
    fillcolor('#FDBFC8')
    end_fill()


def draw_forehead():
    # 额头
    set_start(22, 39, w=1, c='#C81C0F')
    draw_circle(4, '#C81C0F')
    fill_color_patch(27, 36.5, c='#C81C0F')
    begin_fill()
    set_start(27, 36.5, w=1, c='#C81C0F')
    left_rotate(1, 90, 4)
    left_rotate(3, 30, 4.5)
    left_rotate(3, 18, 3)
    left_rotate(1, 140, 3)
    right_rotate(3, 15, 5)
    goto(27, 36.5)
    fillcolor('#EF0F0C')
    end_fill()
    fill_color_patch(21, 42.5, c='#C81C0F')
    begin_fill()
    set_start(21, 42.5, w=1, c='#C81C0F')
    left_rotate(1, 145, 4)
    left_rotate(3, 32, 4)
    left_rotate(3, 23, 3)
    left_rotate(1, 130, 3)
    right_rotate(3, 18, 4.5)
    goto(21, 42.5)
    fillcolor('#EF0F0C')
    end_fill()
    fill_color_patch(13, 39, c='#C81C0F')
    begin_fill()
    set_start(13, 39, w=1, c='#C81C0F')
    left_rotate(1, 170, 4)
    left_rotate(3, 32, 4)
    left_rotate(3, 23, 3)
    left_rotate(1, 130, 3)
    right_rotate(3, 18, 4.5)
    goto(13, 39)
    fillcolor('#EF0F0C')
    end_fill()
    fill_color_patch(12, 32.5, c='#C81C0F')
    begin_fill()
    set_start(12, 32.5, w=1, c='#C81C0F')
    right_rotate(1, 132, 4)
    left_rotate(3, 32, 4)
    left_rotate(3, 23, 3)
    left_rotate(1, 130, 3)
    right_rotate(3, 20, 4.5)
    goto(12, 32.5)
    fillcolor('#EF0F0C')
    end_fill()
    fill_color_patch(18, 28, c='#C81C0F')
    begin_fill()
    set_start(18, 28, w=1, c='#C81C0F')
    right_rotate(1, 32, 4)
    left_rotate(3, 32, 4)
    left_rotate(3, 23, 2.5)
    left_rotate(1, 130, 2)
    right_rotate(3, 20, 4)
    goto(18, 28)
    fillcolor('#EF0F0C')
    end_fill()
    fill_color_patch(26, 32, c='#C81C0F')
    begin_fill()
    set_start(26, 32, w=1, c='#C81C0F')
    left_rotate(1, 18, 4)
    left_rotate(3, 30, 4)
    left_rotate(3, 20, 2.8)
    left_rotate(1, 140, 2)
    right_rotate(3, 20, 4)
    goto(26, 32)
    fillcolor('#EF0F0C')
    end_fill()


def draw_foot():
    # 右脚
    fill_color_patch(72, -253, c='#452100')
    begin_fill()
    set_start(72, -253, w=1, c='#452100')
    right_rotate(1, 150, 8)
    right_rotate(4, 20, 4)
    right_rotate(4, 9, 5)
    right_rotate(4, 12, 6)
    right_rotate(4, 11, 6)
    goto(72, -253)
    fillcolor('#C782B0')
    end_fill()
    fill_color_patch(70, -253, c='#452100')
    begin_fill()
    set_start(70, -253, w=1, c='#452100')
    right_rotate(1, 150, 6)
    right_rotate(4, 20, 4)
    right_rotate(4, 10, 5)
    right_rotate(4, 14, 6)
    right_rotate(3, 11, 6)
    goto(70, -253)
    fillcolor('#E6D1E6')
    end_fill()
    fill_color_patch(72, -253, c='#452100')
    begin_fill()
    set_start(72, -253, w=1, c='#452100')
    right_rotate(1, 150, 8)
    right_rotate(4, 20, 4)
    right_rotate(4, 9, 5)
    right_rotate(4, 12, 6)
    right_rotate(2, 11, 5)
    right_rotate(1, 95, 6)
    right_rotate(6, 6, 6)
    goto(72, -253)
    fillcolor('#552603')
    end_fill()
    fill_color_patch(70, -253, c='#452100')
    begin_fill()
    set_start(70, -253, w=1, c='#452100')
    right_rotate(1, 150, 8)
    right_rotate(4, 18, 3)
    right_rotate(4, 12, 6)
    right_rotate(4, 14, 6)
    right_rotate(1, 10, 4)
    right_rotate(1, 95, 5)
    right_rotate(5, 5.8, 5)
    goto(70, -253)
    fillcolor('#8E4B05')
    end_fill()
    fill_color_patch(33, -270, c='#561B03')
    begin_fill()
    set_start(33, -270, w=2, c='#561B03')
    right_rotate(1, 64, 5)
    right_rotate(3, 5, 5)
    right_rotate(1, 7, 4.8)
    width(1)
    right_rotate(2, 7, 4.8)
    left_rotate(1, 80, 5)
    right_rotate(1, 8, 3)
    right_rotate(5, 40, 2)
    left_rotate(1, 50, 5)
    right_rotate(1, 50, 5)
    right_rotate(2, 33, 6)
    left_rotate(1, 33, 5)
    left_rotate(3, 6, 5)
    left_rotate(1, 7, 4)
    goto(33, -270)
    fillcolor('#E3A830')
    end_fill()
    fill_color_patch(68, -263, c='#561B03')
    begin_fill()
    set_start(68, -263, w=1, c='#561B03')
    left_rotate(1, 50, 0)
    right_rotate(6, 40, 1.5)
    right_rotate(3, 10, 1.5)
    left_rotate(2, 10, 1.5)
    right_rotate(1, 110, 1.5)
    left_rotate(3, 10, 1.5)
    right_rotate(3, 10, 1.5)
    right_rotate(6, 40, 1.7)
    fillcolor('#E3A830')
    end_fill()
    # 左脚
    fill_color_patch(-26, -257, c='#452100')
    begin_fill()
    set_start(-26, -257, w=1, c='#452100')
    right_rotate(1, 150, 10)
    right_rotate(3, 12, 4)
    right_rotate(3, 20, 4)
    right_rotate(4, 5.5, 5)
    right_rotate(4, 12.5, 6)
    right_rotate(4, 10, 6)
    goto(-26, -257)
    fillcolor('#C782B0')
    end_fill()
    fill_color_patch(-27, -257, c='#452100')
    begin_fill()
    set_start(-27, -257, w=1, c='#452100')
    right_rotate(1, 152, 10)
    right_rotate(2, 12, 4)
    right_rotate(3, 24, 4)
    right_rotate(4, 5, 5)
    right_rotate(4, 11, 5)
    right_rotate(1, 20, 6)
    right_rotate(2, 10, 8)
    goto(-27, -257)
    fillcolor('#E6D1E6')
    end_fill()
    fill_color_patch(-26, -257, c='#452100')
    begin_fill()
    set_start(-26, -257, w=1, c='#452100')
    right_rotate(1, 150, 10)
    right_rotate(3, 12, 4)
    right_rotate(3, 20, 4)
    right_rotate(4, 5.5, 5)
    right_rotate(4, 12.5, 6)
    right_rotate(2, 10, 5)
    right_rotate(1, 100, 6)
    right_rotate(5, 5, 5)
    left_rotate(1, 60, 6)
    right_rotate(2, 7, 5)
    goto(-26, -257)
    fillcolor('#703507')
    end_fill()
    fill_color_patch(-27, -257, c='#753507')
    begin_fill()
    set_start(-27, -257, w=1, c='#753507')
    right_rotate(1, 152, 10)
    right_rotate(2, 12, 4)
    right_rotate(3, 24, 4)
    right_rotate(4, 5, 5)
    right_rotate(4, 11, 5)
    right_rotate(1, 20, 6)
    right_rotate(1, 10, 5)
    right_rotate(1, 100, 6)
    right_rotate(5, 5, 4.5)
    left_rotate(1, 60, 6)
    right_rotate(2, 7, 5)
    goto(-27, -257)
    fillcolor('#BC6A19')
    end_fill()
    fill_color_patch(-71, -263, c='#753507')
    begin_fill()
    set_start(-71, -263, w=2, c='#753507')
    right_rotate(1, 68, 5)
    right_rotate(3, 6, 5)
    right_rotate(2, 10, 4.3)
    pencolor('#753507')
    left_rotate(1, 80, 5)
    right_rotate(3, 12, 5)
    right_rotate(1, 80, 4)
    right_rotate(1, 10, 4)
    right_rotate(1, 93, 5)
    left_rotate(2, 12, 4)
    left_rotate(1, 45, 4)
    right_rotate(1, 60, 3)
    right_rotate(3, 18, 4)
    left_rotate(1, 18, 5)
    pencolor('#561B03')
    left_rotate(3, 9, 4.8)
    right_rotate(1, 92, 4)
    goto(-71, -263)
    fillcolor('#E3A830')
    end_fill()
    fill_color_patch(-39, -272, c='#561B03')
    begin_fill()
    set_start(-39, -272, w=1, c='#561B03')
    left_rotate(1, 80, 0)
    right_rotate(7, 35, 1.7)
    right_rotate(3, 25, 2.3)
    left_rotate(2, 15, 2)
    right_rotate(1, 100, 1.5)
    left_rotate(3, 12, 1.7)
    right_rotate(3, 10, 1.7)
    right_rotate(6, 40, 1.8)
    fillcolor('#E3A830')
    end_fill()


def draw_body():
    # 身体轮廓
    fill_color_patch(28, -162, c='#94020C')
    begin_fill()
    set_start(28, -162, w=1, c='#94020C')
    right_rotate(1, 145, 10)
    right_rotate(3, 5, 9)
    right_rotate(3, 5, 11.5)
    right_rotate(3, 8, 3)
    left_rotate(1, 50, 5)
    right_rotate(3, 6, 6.3)
    right_rotate(1, 90, 5)
    right_rotate(3, 4, 7)
    right_rotate(3, 3, 12)
    right_rotate(3, 3, 10)
    right_rotate(3, 2, 15)
    right_rotate(3, 18, 10)
    right_rotate(1, 20, 10)
    right_rotate(3, 6, 10)
    right_rotate(3, 10, 2)
    right_rotate(1, 30, 5)
    left_rotate(5, 10, 5)
    left_rotate(3, 12, 5)
    goto(28, -162)
    fillcolor('#94020C')
    end_fill()
    # 脖子
    fill_color_patch(10, -160, c='#FFB58A')
    begin_fill()
    set_start(9, -160, w=1, c='#FFB58A')
    left_rotate(1, 142, 3)
    right_rotate(3, 16, 4.8)
    right_rotate(3, 15, 5)
    right_rotate(2, 8, 4)
    goto(10, -160)
    fillcolor('#FFB58A')
    end_fill()
    # 右衣领
    fill_color_patch(20, -162, c='#E5B712')
    begin_fill()
    set_start(20, -162, w=1, c='#E5B712')
    left_rotate(1, 140, 3)
    right_rotate(3, 8, 3.5)
    right_rotate(1, 32, 7)
    right_rotate(3, 7, 1.5)
    right_rotate(1, 142, 4)
    left_rotate(3, 11, 4)
    goto(20, -162)
    fillcolor('#E5B712')
    end_fill()
    # 中间最大的衣领
    fill_color_patch(-29, -155, c='#E5B712')
    begin_fill()
    set_start(-29, -155, w=1, c='#E5B712')
    right_rotate(1, 135, 5)
    left_rotate(3, 8, 5)
    left_rotate(2, 7, 8)
    left_rotate(2, 10, 5)
    right_rotate(3, 10, 2)
    right_rotate(3, 17, 1)
    right_rotate(3, 1, 9)
    right_rotate(3, 19, 4)
    right_rotate(3, 17.5, 1.5)
    left_rotate(3, 4, 10)
    left_rotate(3, 2, 12.5)
    right_rotate(3, 19, 1.8)
    left_rotate(1, 140, 1)
    right_rotate(3, 23, 1.8)
    left_rotate(3, 3, 4)
    left_rotate(2, 6, 2)
    right_rotate(1, 132, 7)
    right_rotate(1, 59, 5)
    right_rotate(1, 4, 5)
    left_rotate(1, 62, 2.5)
    right_rotate(3, 17, 1)
    left_rotate(3, 3, 2.5)
    right_rotate(3, 26, 1)
    left_rotate(3, 5, 2.5)
    right_rotate(3, 20, 1.5)
    left_rotate(1, 82, 10)
    right_rotate(6, 1, 6)
    right_rotate(3, 2.8, 4.7)
    left_rotate(3, 34, 3)
    left_rotate(3, 1, 4.8)
    left_rotate(3, 8, 3)
    left_rotate(3, 20.8, 2.5)
    right_rotate(6, 8, 6)
    right_rotate(3, 6.8, 5)
    goto(-29, -155)
    fillcolor('#E5B712')
    end_fill()
    set_start(-70, -214, w=1.5, c='#94020C')
    right_rotate(1, 175, 2)
    left_rotate(7, 35, 1.8)
    set_start(-50, -211, w=1.5, c='#94020C')
    left_rotate(1, 170, 3)
    right_rotate(5, 36, 1.7)
    # 左侧手臂黄边
    fill_color_patch(-41.5, -153, c='#E5B712')
    begin_fill()
    set_start(-41.5, -153, w=1, c='#E5B712')
    right_rotate(1, 154, 5)
    right_rotate(3, 10.2, 6)
    right_rotate(3, 10.5, 4.5)
    right_rotate(5, 5.5, 4.7)
    right_rotate(1, 115, 5.5)
    right_rotate(1, 65, 5)
    left_rotate(4, 11.5, 6)
    left_rotate(5, 10, 5)
    goto(-41.5, -153)
    fillcolor('#E5B712')
    end_fill()
    # 右下衣角
    fill_color_patch(57, -218, c='#E5B712')
    begin_fill()
    set_start(57, -218, w=1, c='#E5B712')
    left_rotate(1, 175, 5)
    right_rotate(1, 6, 5)
    right_rotate(4, 31, 0.5)
    left_rotate(3, 7, 11)
    right_rotate(3, 10, 1.5)
    right_rotate(2, 35, 1.5)
    right_rotate(1, 76, 11)
    right_rotate(3, 6, 7)
    left_rotate(1, 100, 1)
    right_rotate(3, 20, 2)
    goto(57, -218)
    fillcolor('#E5B712')
    end_fill()
    set_start(53, -219, w=1.5, c='#94020C')
    left_rotate(1, 170, 4)
    left_rotate(6, 40, 1.4)
    # 修复头的边框
    set_start(125, -130, w=4, c='#9392B3')
    left_rotate(1, 78, 10)
    right_rotate(3, 5, 18)
    right_rotate(4, 6, 21)
    right_rotate(5, 5, 18)
    right_rotate(3, 7, 20)


def draw_hand():
    # 右手
    fill_color_patch(81, -179, c='#877E96')
    begin_fill()
    set_start(81, -179, w=2, c='#877E96')
    right_rotate(1, 125, 5)
    right_rotate(2, 15, 4)
    right_rotate(3, 30, 1.5)
    right_rotate(2, 30, 2)
    left_rotate(1, 148, 6)
    right_rotate(2, 30, 3)
    right_rotate(1, 50, 3)
    right_rotate(2, 20, 3)
    left_rotate(1, 155, 6)
    right_rotate(2, 30, 3)
    right_rotate(1, 50, 3)
    right_rotate(3, 30, 3.5)
    left_rotate(1, 155, 5)
    right_rotate(3, 30, 3)
    right_rotate(1, 55, 3)
    right_rotate(2, 10, 5)
    goto(81, -179)
    fillcolor('#DFDBF1')
    end_fill()
    fill_color_patch(51.68, -193.93, c='#A0A6A1')
    begin_fill()
    set_start(51.68, -193.93, w=2, c='#A0A6A1')
    setheading(295)
    left_rotate(1, 94, 3)
    left_rotate(3, 10, 5)
    left_rotate(3, 12, 4.5)
    right_rotate(1, 110, 4)
    right_rotate(3, 7, 4.5)
    right_rotate(1, 60, 5)
    right_rotate(3, 7, 5)
    right_rotate(3, 5, 5)
    right_rotate(2, 12, 4.5)
    width(1)
    pencolor('#94020C')
    goto(51.68, -193.93)
    fillcolor('#DFE9E1')
    end_fill()
    fill_color_patch(28, -162, c='#94020C')
    begin_fill()
    set_start(28, -162, w=1, c='#94020C')
    right_rotate(1, 145, 10)
    right_rotate(3, 5, 9)
    right_rotate(1, 5, 3)
    pencolor('#A0A6A1')
    width(2)
    left_rotate(1, 94, 3)
    left_rotate(3, 10, 5)
    left_rotate(3, 13, 4)
    pencolor('#824A0C')
    left_rotate(1, 55, 4)
    left_rotate(2, 4, 6.2)
    left_rotate(1, 4, 4)
    width(1)
    left_rotate(1, 0, 1)
    left_rotate(1, 18, 3)
    pencolor('#F2D95D')
    left_rotate(1, 0, 4)
    goto(28, -163)
    fillcolor('#F2D918')
    end_fill()
    # 左手
    fill_color_patch(-71.76, -185.88, c='#94020C')
    begin_fill()
    set_start(-71.76, -185.88, w=1, c='#94020C')
    setheading(44.8)
    right_rotate(1, 30, 5)
    left_rotate(5, 10, 5)
    left_rotate(3, 12, 5)
    pencolor('#996B09')
    left_rotate(1, 50, 5)
    left_rotate(4, 2, 5)
    left_rotate(1, 75, 5)
    left_rotate(5, 2, 7.5)
    width(2)
    pencolor('#B4660D')
    left_rotate(1, 75, 5)
    left_rotate(4, 8, 4)
    goto(-71.76, -185.88)
    fillcolor('#F2D918')
    end_fill()
    fill_color_patch(-88, -134, c='#877E96')
    begin_fill()
    set_start(-88, -134, w=2, c='#877E96')
    left_rotate(1, 95, 5)
    left_rotate(1, 10, 4)
    right_rotate(1, 48, 5)
    left_rotate(2, 8, 3)
    left_rotate(5, 29, 2)
    left_rotate(2, 8, 3)
    right_rotate(1, 45, 5)
    left_rotate(3, 24, 3.5)
    set_start(-106.5, -129, w=2, c='#877E96')
    left_rotate(1, 140, 6)
    left_rotate(3, 8, 5)
    left_rotate(1, 10, 3)
    left_rotate(3, 35, 2.5)
    set_start(-119, -141, w=2, c='#877E96')
    left_rotate(1, 150, 5)
    left_rotate(2, 15, 3.7)
    left_rotate(3, 40, 2.5)
    set_start(-118, -149, w=2, c='#877E96')
    left_rotate(1, 150, 5)
    left_rotate(1, 15, 4.5)
    left_rotate(3, 40, 2.5)
    left_rotate(1, 15, 3)
    left_rotate(2, 5, 4)
    right_rotate(1, 55, 10)
    left_rotate(1, 70, 10)
    left_rotate(5, 16, 6.5)
    goto(-88, -134)
    fillcolor('#DFDBF1')
    end_fill()
    fill_color_patch(-112, -164, c='#A0A6A1')
    begin_fill()
    set_start(-112, -164, w=2, c='#A0A6A1')
    right_rotate(1, 130, 3)
    left_rotate(3, 13, 3)
    left_rotate(2, 4, 3)
    left_rotate(3, 16, 5)
    left_rotate(3, 13, 5)
    left_rotate(3, 10, 7)
    left_rotate(1, 15, 4)
    left_rotate(1, 45, 22)
    left_rotate(1, 160, 5)
    right_rotate(3, 17, 5)
    width(3)
    right_rotate(4, 10, 5)
    right_rotate(3, 17, 4)
    goto(-112, -164)
    fillcolor('#DFE9E1')
    end_fill()


def draw_clothes():
    # 右侧衣服颜色
    fill_color_patch(32, -170, c='#AB1A21')
    begin_fill()
    set_start(32, -170, w=1, c='#AB1A21')
    right_rotate(1, 150, 10)
    right_rotate(3, 8, 13)
    right_rotate(3, 28, 2)
    right_rotate(1, 40, 5)
    left_rotate(3, 4, 7)
    goto(25.18, -208.63)
    setheading(85.632)
    left_rotate(3, 9, 12)
    right_rotate(2, 30, 4)
    right_rotate(1, 20, 4)
    right_rotate(3, 25, 2)
    goto(32, -170)
    fillcolor('#AB1A21')
    end_fill()
    fill_color_patch(32, -170, c='#D5464D')
    begin_fill()
    set_start(32, -170, w=1, c='#D5464D')
    right_rotate(1, 150, 10)
    right_rotate(3, 8, 13)
    right_rotate(3, 28, 1)
    right_rotate(1, 3, 2)
    right_rotate(3, 35, 1)
    left_rotate(3, 9, 14)
    right_rotate(1, 5, 6)
    goto(32, -170)
    fillcolor('#D5464D')
    end_fill()
    fill_color_patch(20, -175, c='#E61110')
    begin_fill()
    set_start(20, -175, w=1, c='#E61110')
    right_rotate(1, 152, 7)
    right_rotate(3, 8, 10)
    right_rotate(3, 35, 1.5)
    right_rotate(1, 4, 5)
    right_rotate(3, 30, 1)
    left_rotate(3, 8, 10)
    right_rotate(3, 34, 1.5)
    goto(20, -175)
    fillcolor('#E61110')
    end_fill()
    # 左侧衣服颜色
    fill_color_patch(-36, -159, c='#E80604')
    begin_fill()
    set_start(-36, -159, w=1, c='#E80604')
    right_rotate(1, 140, 5)
    left_rotate(3, 8, 5)
    left_rotate(2, 8, 8)
    left_rotate(2, 9, 5)
    right_rotate(3, 11, 3)
    right_rotate(3, 15, 1)
    right_rotate(3, 1, 5)
    right_rotate(3, 19, 1)
    right_rotate(3, 15.5, 1.2)
    left_rotate(3, 4, 9)
    right_rotate(3, 28, 2)
    left_rotate(3, 12, 7)
    right_rotate(3, 10, 2)
    right_rotate(3, 5, 2)
    goto(-37, -159)
    fillcolor('#E80604')
    end_fill()
    # 裙子黄边
    fill_color_patch(68, -244, c='#E5B712')
    begin_fill()
    set_start(68, -244, w=1, c='#E5B712')
    right_rotate(1, 175, 6.5)
    right_rotate(1, 92, 5)
    right_rotate(3, 4, 10)
    right_rotate(3, 3.2, 17)
    right_rotate(3, 5, 15)
    right_rotate(1, 80, 6)
    right_rotate(1, 103, 5)
    left_rotate(3, 4.8, 15)
    left_rotate(3, 3.6, 15)
    left_rotate(3, 3.6, 10)
    goto(68, -244)
    fillcolor('#E5B712')
    end_fill()
    # 裙子颜色
    fill_color_patch(66, -243, c='#E80604')
    begin_fill()
    set_start(66, -243, w=1, c='#E80604')
    left_rotate(1, 92, 5)
    right_rotate(3, 4, 10)
    right_rotate(3, 3, 15)
    right_rotate(3, 32, 1.5)
    left_rotate(3, 8, 8)
    right_rotate(3, 35, 1.5)
    right_rotate(3, 3, 15)
    right_rotate(1, 6, 15)
    right_rotate(3, 4.5, 5)
    right_rotate(1, 10, 5)
    goto(66, -243)
    fillcolor('#E80604')
    end_fill()
    fill_color_patch(66, -243, c='#AB1A21')
    begin_fill()
    set_start(66, -243, w=1, c='#AB1A21')
    left_rotate(1, 92, 5)
    right_rotate(1, 5, 10)
    right_rotate(1, 5, 5)
    right_rotate(3, 32, 1.5)
    left_rotate(2, 8, 9)
    right_rotate(1, 122, 1)
    right_rotate(3, 4, 5)
    right_rotate(1, 10, 5)
    goto(66, -243)
    fillcolor('#AB1A21')
    end_fill()
    fill_color_patch(67, -243, c='#D5464D')
    begin_fill()
    set_start(67, -243, w=1, c='#D5464D')
    left_rotate(1, 91, 3)
    right_rotate(3, 30, 1)
    left_rotate(2, 5, 4.5)
    right_rotate(1, 145, 1)
    right_rotate(1, 10, 5)
    goto(67, -243)
    fillcolor('#D5464D')
    end_fill()
    # 纽扣
    fill_color_patch(9, -179, c='#865908')
    begin_fill()
    set_start(9, -179, w=1, c='#865908')
    left_rotate(1, 105, 9)
    right_rotate(1, 90, 1)
    left_rotate(5, 32, 2)
    right_rotate(1, 60, 1)
    left_rotate(2, 35, 1.7)
    left_rotate(3, 35, 1.2)
    right_rotate(1, 80, 2)
    left_rotate(3, 35, 2)
    left_rotate(2, 32, 1.5)
    right_rotate(1, 110, 9)
    goto(9, -179)
    fillcolor('#E5B712')
    end_fill()
    set_start(-5, -183, w=1, c='#865908')
    right_rotate(1, 160, 0)
    left_rotate(5, 38, 1.2)
    set_start(-5, -188, w=1, c='#865908')
    left_rotate(1, 10, 0)
    right_rotate(5, 38, 1.2)
    fill_color_patch(13, -196, c='#865908')
    begin_fill()
    set_start(13, -196, w=1, c='#865908')
    left_rotate(1, 90, 8)
    right_rotate(1, 85, 0)
    left_rotate(3, 30, 2)
    left_rotate(2, 30, 1.5)
    right_rotate(1, 60, 1)
    left_rotate(2, 35, 1.9)
    left_rotate(3, 35, 1.3)
    right_rotate(1, 80, 2)
    left_rotate(3, 35, 1.8)
    left_rotate(2, 33, 1.3)
    right_rotate(1, 95, 10)
    goto(13, -196)
    fillcolor('#E5B712')
    end_fill()
    set_start(-2, -198, w=1, c='#865908')
    right_rotate(1, 160, 0)
    left_rotate(5, 36, 1.2)
    set_start(-1, -202, w=1, c='#865908')
    right_rotate(1, 10, 0)
    right_rotate(5, 36, 1)
    fill_color_patch(15, -176, c='#865908')
    begin_fill()
    set_start(15, -176, w=1, c='#865908')
    left_rotate(1, 60, 2)
    left_rotate(9, 30, 3)
    left_rotate(1, 30, 2)
    right_rotate(1, 80, 6)
    right_rotate(1, 70, 1)
    left_rotate(5, 32, 2)
    right_rotate(1, 60, 1)
    left_rotate(5, 35, 1.7)
    right_rotate(1, 80, 2)
    left_rotate(2, 32, 2)
    left_rotate(3, 35, 1.5)
    right_rotate(1, 110, 5)
    goto(15, -176)
    fillcolor('#E5B712')
    end_fill()
    set_start(22, -172, w=1, c='#865908')
    right_rotate(1, 160, 0)
    left_rotate(5, 35, 1.2)
    set_start(25, -176, w=1, c='#865908')
    left_rotate(1, 10, 0)
    right_rotate(5, 35, 1)
    fill_color_patch(20, -194, c='#865908')
    begin_fill()
    set_start(20, -194, w=1, c='#865908')
    left_rotate(1, 60, 3)
    left_rotate(9, 29, 3)
    left_rotate(1, 30, 2)
    right_rotate(1, 80, 6)
    right_rotate(1, 70, 1)
    left_rotate(5, 32, 2)
    right_rotate(1, 60, 1)
    left_rotate(3, 35, 1.7)
    left_rotate(2, 35, 1.5)
    right_rotate(1, 90, 2)
    left_rotate(2, 32, 1.5)
    left_rotate(3, 35, 1.7)
    right_rotate(1, 100, 5)
    goto(20, -194)
    fillcolor('#E5B712')
    end_fill()
    set_start(28, -193, w=1, c='#865908')
    right_rotate(1, 160, 0)
    left_rotate(5, 35, 1)
    set_start(30, -197, w=1, c='#865908')
    left_rotate(1, 10, 0)
    right_rotate(5, 35, 1)
    fill_color_patch(13.2, -184, c='#801C00')
    set_start(13.2, -184, w=1, c='#801C00')
    draw_circle(3.5, '#801C00')
    fill_color_patch(12.8, -183, c='#DB2E32')
    set_start(12.8, -183, w=1, c='#DB2E32')
    draw_circle(2.3, '#DB2E32')
    fill_color_patch(13, -181, c='#F06243')
    set_start(13, -181, w=1, c='#F06243')
    draw_circle(1, '#F06243')
    fill_color_patch(17, -202, c='#801C00')
    set_start(17, -202, w=1, c='#801C00')
    draw_circle(3.5, '#801C00')
    fill_color_patch(16.8, -201, c='#DB2E32')
    set_start(16.8, -201, w=1, c='#DB2E32')
    draw_circle(2.3, '#DB2E32')
    fill_color_patch(16.8, -199, c='#F06243')
    set_start(16.8, -199, w=1, c='#F06243')
    draw_circle(1, '#F06243')
    # 画衣服上的圆形图案
    fill_color_patch(55, -212, c='#DF3370')
    begin_fill()
    set_start(55, -212, w=1, c='#AB1A21')
    setheading(287)
    right_rotate(3, 28, 2)
    right_rotate(1, 40, 5)
    left_rotate(2, 4, 5)
    right_rotate(1, 70, 5)
    right_rotate(3, 18, 4)
    right_rotate(3, 25, 2.5)
    right_rotate(3, 15, 2.5)
    goto(55, -212)
    fillcolor('#DF3370')
    end_fill()
    set_start(52, -213, w=1, c='#AB1A21')
    left_rotate(1, 80, 4.5)
    right_rotate(1, 90, 3)
    right_rotate(1, 90, 4.5)
    left_rotate(1, 90, 1)
    left_rotate(2, 15, 1.5)
    left_rotate(1, 60, 3.5)
    right_rotate(1, 90, 3)
    right_rotate(1, 90, 3)
    left_rotate(1, 90, 1)
    left_rotate(5, 20, 1.2)
    set_start(39, -212, w=1, c='#AB1A21')
    right_rotate(1, 105, 5.5)
    left_rotate(1, 95, 3)
    left_rotate(1, 90, 5)
    right_rotate(1, 90, 1)
    right_rotate(2, 15, 1.5)
    right_rotate(1, 60, 3.5)
    left_rotate(1, 95, 3)
    left_rotate(1, 90, 4)
    right_rotate(1, 90, 1)
    right_rotate(5, 20, 1.2)
    fill_color_patch(55, -233, c='#DF3370')
    begin_fill()
    set_start(55, -233, w=1, c='#DF3370')
    left_rotate(1, 155, 5)
    right_rotate(4, 30, 5)
    right_rotate(4, 18, 3.5)
    right_rotate(1, 78, 5)
    right_rotate(3, 5, 5)
    goto(55, -233)
    fillcolor('#DF3370')
    end_fill()
    set_start(50, -242, w=1, c='#AB1A21')
    right_rotate(1, 5, 6)
    right_rotate(1, 90, 4)
    right_rotate(1, 90, 0)
    right_rotate(3, 15, 1.5)
    set_start(53, -233, w=1, c='#AB1A21')
    left_rotate(1, 80, 5)
    right_rotate(1, 90, 3)
    set_start(46, -243, w=1, c='#AB1A21')
    right_rotate(1, 5, 6)
    left_rotate(1, 90, 6)
    left_rotate(1, 100, 0)
    left_rotate(3, 18, 1.8)
    set_start(36, -235, w=1, c='#AB1A21')
    right_rotate(1, 95, 9)
    left_rotate(1, 95, 3.5)
    left_rotate(1, 90, 7)
    right_rotate(1, 90, 1)
    right_rotate(3, 15, 1.2)
    right_rotate(1, 50, 5)
    fill_color_patch(-32, -220, c='#94020C')
    begin_fill()
    set_start(-32, -220, w=1, c='#94020C')
    right_rotate(1, 140, 5)
    right_rotate(4, 24, 5)
    right_rotate(4, 15, 2)
    right_rotate(1, 55, 5)
    right_rotate(3, 5, 4)
    right_rotate(1, 50, 4)
    goto(-32, -220)
    fillcolor('#B23253')
    end_fill()
    set_start(-42, -240, w=1, c='#94020C')
    left_rotate(1, 10, 7)
    right_rotate(1, 95, 8)
    right_rotate(1, 100, 0)
    right_rotate(3, 22, 2.5)
    set_start(-30, -230, w=1, c='#94020C')
    left_rotate(1, 98, 11)
    right_rotate(1, 90, 4)
    right_rotate(1, 90, 9)
    left_rotate(1, 90, 0)
    left_rotate(3, 20, 1.8)
    left_rotate(1, 35, 7)
    fill_color_patch(-75, -199, c='#B23253')
    begin_fill()
    set_start(-75, -199, w=1, c='#B23253')
    right_rotate(1, 100, 1)
    right_rotate(2, 20, 1)
    right_rotate(3, 17, 5)
    right_rotate(1, 40, 1)
    right_rotate(1, 113, 5)
    right_rotate(2, 2, 5)
    goto(-75, -199)
    fillcolor('#B23253')
    end_fill()
    set_start(-77, -203, w=1, c='#94020C')
    right_rotate(1, 80, 3)
    set_start(-73, -208, w=1, c='#94020C')
    left_rotate(1, 100, 3)
    set_start(-77, -212, w=1, c='#94020C')
    right_rotate(1, 80, 2)


def draw_jade():
    # 玉佩
    fill_color_patch(-60, -225, c='#964B14')
    begin_fill()
    set_start(-60, -225, w=1, c='#964B14')
    right_rotate(1, 100, 2)
    right_rotate(2, 30, 2)
    left_rotate(2, 30, 2)
    right_rotate(2, 30, 3)
    right_rotate(2, 18, 2.5)
    left_rotate(1, 50, 0)
    right_rotate(6, 30, 7)
    right_rotate(4, 18, 3.2)
    left_rotate(1, 90, 0)
    right_rotate(3, 28, 2)
    right_rotate(2, 20, 4)
    left_rotate(2, 30, 1)
    right_rotate(2, 30, 1.5)
    goto(-60, -225)
    fillcolor('#D99024')
    end_fill()
    fill_color_patch(-69.8, -252.5, c='#2D5835')
    set_start(-69.8, -252.5, w=1, c='#2D5835')
    draw_circle(9.5, '#2D5835')
    fill_color_patch(-69, -251, c='#289884')
    set_start(-69, -251, w=1, c='#289884')
    draw_circle(8, '#289884')
    fill_color_patch(-67, -248.5, c='#36D0C4')
    set_start(-67, -248.5, w=1, c='#36D0C4')
    draw_circle(6, '#36D0C4')
    set_start(-58, -223, w=2, c='#791500')
    right_rotate(1, 185, 10)
    set_start(-60.8, -222, w=2, c='#791500')
    right_rotate(1, 175, 10)
    fill_color_patch(-73, -255, c='#964B14')
    begin_fill()
    set_start(-73, -255, w=1, c='#964B14')
    left_rotate(1, 145, 6)
    right_rotate(1, 90, 2.5)
    right_rotate(1, 80, 5.5)
    goto(-73, -255)
    fillcolor('#D99024')
    end_fill()
    fill_color_patch(-84, -257, c='#791500')
    begin_fill()
    set_start(-84, -257, w=1, c='#791500')
    right_rotate(1, 40, 4)
    right_rotate(5, 30, 2)
    right_rotate(1, 30, 4)
    set_start(-84, -257, w=1, c='#791500')
    right_rotate(1, 90, 2)
    right_rotate(3, 15, 2)
    right_rotate(1, 30, 1)
    right_rotate(3, 20, 3)
    right_rotate(3, 42, 2)
    left_rotate(3, 33, 2)
    right_rotate(3, 47, 1)
    right_rotate(3, 7, 2.5)
    goto(-84, -257)
    fillcolor('#E43628')
    end_fill()
    set_start(-87, -261, w=1, c='#791500')
    left_rotate(1, 140, 4)
    set_start(-86, -263, w=1, c='#791500')
    left_rotate(1, 140, 3)
    set_start(-85, -264, w=1, c='#791500')
    left_rotate(1, 140, 3)



if __name__ == '__main__':
    title('兔年到,好运到,我的祝福先送到')
    wide = 800
    height = 600
    screensize(wide, height, '#DC0058')
    setup(wide+30, height+30, 50, 10)
    shape(name='turtle')
    time.sleep(2)
    draw_ear()
    draw_cat()
    draw_head()
    draw_face()
    draw_mouth()
    draw_eye()
    draw_eyebrow()
    draw_nose()
    draw_cheek()
    draw_forehead()
    draw_foot()
    draw_body()
    draw_hand()
    draw_clothes()
    draw_jade()
    

    set_start(1000, 1000, 2.5)
    done()






 

python源代码推荐

python实现冰墩墩,python编程画冰墩墩代码
python画雪容融源代码,python编程实现绘画雪容融


    
#由小斌哥ge分享
 

郑重声明:本文由网友发布,不代表盛行IT的观点,版权归原作者所有,仅为传播更多信息之目的,如有侵权请联系,我们将第一时间修改或删除,多谢。

相关文章阅读

  • cad如何进行三维拉伸图,CAD如何三维拉伸
  • epub+azw3+mobi+pdf+txt Kindle电子书下载,epub+mobi+azw3+txt+pdf+txt+kindle
  • 电脑网络图标变成地球并且无法上网的解决方法 - 处理电脑网络图标变成地球并且无法上网的方法
  • 抖音显示作品为0怎么回事,为什么抖音作品显示0
  • easyrecovery使用方法,easyrecovery可对分布在硬盘上
  • linux查看oracle数据库表空间,查看Oracle表空间
  • sql server 2008 r2使用教程,sqlserver 2008R2,图文详解SQL Server 2008R2使用教程
  • aria2下载工具,aria2app教程
  • 用python求一元二次方程的根,python二元一次方程求根简单
  • autocad坐标标注怎样设置,autocad2014坐标标注设置
  • 学信网更改绑定手机号,原手机号忘了,学信网更改绑定手机号有什么影响-
  • 财务精度:BigInteger 与 BigDecimal()
  • Python 做报表,python报表开发实例
  • Ace Translatorv16.3.0.1630免注册破解版一款完全免费的在线翻译工具
  • cad快速看图工具用法,cad快速看图命令栏
  • 留言与评论(共有 条评论)
       
    验证码: