Complete Flower Design by using Python | source code is in description #shorts #youtube #python

preview_player
Показать описание
from turtle import *
import colorsys

speed(0)
bgcolor('black')
hue=0.8

for i in range(100):
hue+=0.004
fillcolor(col)
begin_fill()
circle(100-i,40)
lt(20)
lt(90)
circle(100-i,40)
rt(80)
end_fill()

speed(10)
hideturtle()
penup()
fd(100)
lt(70)
fd(30)
lt(90)
fd(96)
pendown()

rt(53)
fd(6)

color('green')
pensize(6)
rt(37)
fd(120)

color('grey')
begin_fill()
pensize(2)
lt(90)
fd(50)
rt(120)
fd(50)
rt(60)
fd(60)
rt(60)
fd(50)
rt(120)
fd(60)
end_fill()

color('green')
lt(90)
fd(30)
rt(45)

begin_fill()
fd(30)
lt(20)
fd(25)
rt(45)
fd(25)
rt(125)
fd(25)
rt(60)
fd(27)
end_fill()

color('green')
lt(30)
fd(31)
rt(130)
fd(30)
lt(45)
fd(30)

begin_fill()
rt(25)
fd(25)
lt(50)
fd(25)
lt(120)
fd(25)
lt(65)
fd(27)
end_fill()

done()
Рекомендации по теме
welcome to shbcf.ru