Python Turtle - Colourful Spirograph Tutorial

Publicado em: 06 Abril 2020
no 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()


Nesta página do site você pode assistir ao vídeo on-line Python Turtle - Colourful Spirograph Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Geek Tutorials 06 Abril 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 7,944 vezes e gostou 102 espectadores. Boa visualização!