пятница, 19 августа 2022 г.
пятница, 5 августа 2022 г.
Trinket-1
import turtle
t = turtle.Turtle("arrow")
t.left(90)
def zigzag(wline, numline, dimline, clrline):
t.color(clrline)
t.width(wline)
t.left(45)
for i in range(numline):
t.forward(dimline)
t.right(90)
t.forward(2*dimline)
t.left(90)
t.forward(dimline)
t.right(45)
def labirint(wline, numline, dimline, clrline):
t.color(clrline)
t.width(wline)
t.left(90)
for i in range(numline):
t.forward(dimline)
t.right(90)
t.forward(dimline)
t.right(90)
t.forward(2*dimline)
t.left(90)
t.forward(dimline)
t.left(90)
t.forward(dimline)
t.right(90)
def wave(wline, numline, rline, clrline):
t.color(clrline)
t.width(wline)
t.right(90)
for i in range(numline):
t.circle(rline, -180)
t.right(180)
t.circle(rline, 180)
t.right(180)
t.left(90)
#zigzag(2, 10, 5, 'green')
#labirint(2, 10, 5, 'green')
wave(2, 10, 5, 'green')