【发布时间】:2018-10-24 04:27:47
【问题描述】:
我想要 360 个 PNG 位图,每个位图都是一个弧线,并呈现一个进步的一步。以下位图用于第 60 步(距顶部 60 度)和第 120 步。
如何在代码中绘制这些位图?
编辑:我现在可以画了,但不知道如何将起点设置在顶部而不是底部
import turtle
wn = turtle.Screen
turtle.hideturtle()
turtle.hideturtle()
turtle.ht()
turtle.speed(0)
turtle.pensize(11)
turtle.color("grey")
turtle.circle(200)
turtle.color("red")
turtle.circle(200, 60, 3600)
cv = turtle.getcanvas()
cv.postscript(file="circle.ps", colormode='color')
turtle.done()
【问题讨论】:
-
抱歉,这不是 SO 的工作方式。
-
由于您的问题是标注器
python,matplotlib经常在python中用于绘图。也许你想在谷歌上搜索一下