1.彩色螺旋線
from turtle import * import turtle t = Turtle() t.pensize(2) turtle.bgcolor("black") colors = ["red", "yellow", 'purple', 'blue'] t._tracer(False) for x in range(400): for y in range(200): t.forward(x * y) t.color(colors[x % 4]) t.left(91) t._tracer(True) done()
文章源自四五設計網-http://www.wasochina.com/35567.html 文章源自四五設計網-http://www.wasochina.com/35567.html
繼續(xù)閱讀
我的微信
微信掃一掃

我的微信
惠生活福利社
微信掃一掃

我的公眾號
評論