Basic Python Turtle Code: Asterisk

Pubblicato il: 03 maggio 2022
sul canale di: Basic Python Turtle Art
428
5

A multi-hued asterisk created by variably sized and colored figures. The color transitions from yellow at the center to brownish shade, and then to darkish red at the edge.

Feel free to copy and paste the basic Python Turtle code that is given below. Ask any questions about the code if you have any. Enjoy and please subscribe! :)

import turtle
t= turtle.Turtle()
screen=turtle.Screen()
screen.colormode(255)
t.pensize(3)
t.speed(10)
def tripoint(x):
t.penup()
t.goto(0, 0)
t.forward(x)
t.pendown()
t.left(150)
for i in range(3):
t.circle(x, 120)
t.left(120)
x=50
r = 255
g = 255
for j in range(10):
for k in range(2):
t.pencolor(r,g,0)
tripoint(x)
t.left(30)
r -= 5
g -= 24
x += 28
t.ht()
screen.exitonclick()


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