Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
45いいね 2,503 views回再生

Draw Flower in Python | pydroid 3 app | turtle graphics design

Draw Flower in Python | pydroid 3 app | turtle graphics design

source code:

from turtle import *
import colorsys
tracer(100)
def leaf():
color('green')
begin_fill()
circle(100,90)
lt(90)
circle(100,90)
end_fill()
color('green')
begin_fill()
rt(90)
fd(600)
lt(90)
fd(10)
lt(90)
fd(600)
end_fill()
lt(180)
fd(500)
lt(145)
pensize(3)
fd(50)
rt(45)
leaf()
penup()
rt(90)
fd(40)
rt(90)
pendown()
leaf()
goto(0,0)
lt(180)
fd(30)
lt(180)
h = 0.7
for i in range(190):
c = colorsys.hsv_to_rgb(h,1,1)
color(c)
h += 0.001
begin_fill()
circle(180-i,100)
lt(100)
circle(180-i,100)
rt(100)
end_fill()
done()

コメント