Python Turtle Code: Arcs and Lines

Опубликовано: 14 Март 2022
на канале: Basic Python Turtle Art
64
1

A graphic generated by a circle sector rotating about a fixed point. The rotation is illustrated by 12 sector images and Python Turtle coded with just 21 lines.

Please feel free to copy and paste the Python Turtle code that is given below. Don't hesitate to ask questions about the code if you have any. Please subscribe and enjoy! :)

import turtle
t = turtle.Turtle()
scrin = turtle.Screen()
t.pensize(4)
t.speed(2)
for i in range(12):
t.color("red")
t.circle(250, 65)
t.penup()
t.goto(0, 0)
t.left(25)
t.pendown()
t.color("green")
t.forward(250)
t.right(115)
t.forward(250)
t.penup()
t.goto(0, 0)
t.left(55)
t.pendown()
scrin.exitonclick()


На этой странице сайта вы можете посмотреть видео онлайн Python Turtle Code: Arcs and Lines длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Basic Python Turtle Art 14 Март 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 64 раз и оно понравилось 1 зрителям. Приятного просмотра!