Basic Python Turtle Code: Asterisk

Publicado el: 03 mayo 2022
en el canal de: 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()


En esta página del sitio puede ver el video en línea Basic Python Turtle Code: Asterisk de Duración hora minuto segunda en buena calidad , que subió el usuario Basic Python Turtle Art 03 mayo 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 428 veces y le gustó 5 a los espectadores. Disfruta viendo!