Python Turtle - Colourful Spirograph Tutorial

Publicado el: 06 abril 2020
en el canal de: Geek Tutorials
7,944
102

Learn how to quickly and easily draw a colourful hexagonal spirograph using the Turtle module in Python.

⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! https://www.kite.com/get-kite/?utm_me...

~ CODE ~

from turtle import *

speed(0)
bgcolor("black")

colours = ["red", "purple", "blue", "green", "orange", "yellow"]

for i in range(360):
pencolor(colours[i%6])
width(i / 250 + 1)
forward(i)
left(59)

hideturtle()


En esta página del sitio puede ver el video en línea Python Turtle - Colourful Spirograph Tutorial de Duración hora minuto segunda en buena calidad , que subió el usuario Geek Tutorials 06 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 7,944 veces y le gustó 102 a los espectadores. Disfruta viendo!