Basic Python Turtle Code: Tube

Опубликовано: 21 Апрель 2022
на канале: Basic Python Turtle Art
326
7

A series of circles, any one of which is slightly bigger than the immediately preceding circle. The color also transitions from yellow, to orange, to red, and to violet.

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

import turtle
t = turtle.Turtle()
screen = turtle.Screen()
screen.colormode(255)
t.speed(10)
rad = 90
x = -315
g = 255
b = 0
t.pensize(4)
for i in range(31):
t.penup()
t.goto(x, -rad)
t.pendown()
t.pencolor(255, g, b)
t.circle(rad, 360)
rad += 5
x += 15
if g == 0:
b += 17
else:
g -= 17
t.ht()
screen.exitonclick()


На этой странице сайта вы можете посмотреть видео онлайн Basic Python Turtle Code: Tube длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Basic Python Turtle Art 21 Апрель 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 326 раз и оно понравилось 7 зрителям. Приятного просмотра!