Basic Python Turtle Code: Tube

Pubblicato il: 21 aprile 2022
sul canale di: 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()


In questa pagina del sito puoi guardare il video online Basic Python Turtle Code: Tube della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Basic Python Turtle Art 21 aprile 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 326 volte e gli è piaciuto 7 spettatori. Buona visione!