运用python和turtle编程程序,画出图片中的logo,要详细的程序步骤

把图片保存成1.png。
效果如下:

import turtle as t
import cv2
t.getscreen().colormode(255)
img1 = cv2.imread('1.png')[0: -2: 2]
width = len(img1[0])
height = len(img1)
t.setup(width=width / 2 + 100, height=height + 100)
t.pu()
t.goto(-width / 4 + 10, height / 2 - 10)
t.pd()
t.tracer(2000)
for k1, i in enumerate(img1):
for j in i[::2]:
t.pencolor((j[2], j[1], j[0]))
t.fd(1)
t.pu()
t.goto(-width / 4 + 10, height / 2 - 10 - k1 - 1)
t.pd()
t.done()