Python Turtle - Circle Spirograph Tutorial

preview_player
Показать описание
Learn how to code a circular spirograph using Python code.

Рекомендации по теме
Комментарии
Автор

Also if you want the Window to stay open after the turtle has completed the drawing so you can actually see it, include this code at the very end.
turtle.done()

tlevergood
Автор

because this is an older version of python that he's doing it on you might have to include:
wn = turtle.Screen() then put wn before anything related to the screen and with the pen to draw you might have to do this:
pen = turtle.Turtle() and put the pen before anything related to the pen

davidgregorygodwin
Автор

thx sir for this clear explanation it helped me a lot and now pythin turtle is ez for me !!!

fawazsabeer
Автор

Thank you.This was very easy to follow.

sal
Автор

Amazing so understandable and easy to follow!

lilyshiri
Автор

thx for this code it helped me in my project

alanwarlimdiwala
Автор

Can the center be moved left/right and up and down so that the spirograph rotates three-dimensionally?

dharryg
Автор

import turtle

screen = turtle.Screen()
screen.bgcolor("black")

turtle.pensize(1)
turtle.speed(0)


for i in range(8):
for colors in ["blue", "orange", "yellow", "green", "red", "aqua", "blue", "red"]:
turtle.color(colors)
turtle.circle(20)
turtle.left(6)
turtle.backward(10)
turtle.done()
turtle.pensize(3)
for i in range(6):
for colors in ["blue", "red", "green", "blue", "red", "green", "blue", "red"]:
turtle.color(colors)
turtle.circle(40)
turtle.left(20)
turtle.backward(30)
turtle.done()

aliabbasov
Автор

Stupendous sir, I got it at 1st attempt itself. Very well explained.

sowmyashreemb
Автор

import turtle

turtle.bgcolor("black")
turtle.pensize(2)
turtle.speed(0)

for i in range(6):
for colours in ["red", "magenta", "blue", "cyan", "green", "yellow", "white"]:
turtle.color(colours)
turtle.circle(100)
turtle.left(10)

turtle.hideturtle()

txicyt
Автор

You are awesome, and your skills ❤️❤️❤️👍

pankajkumar-vkcl
Автор

thank you, it was easy to understand :D

meriemhaddad
Автор

Wow Sir! I like it Keep It Up Like That For Your Amazing Videos! Great Tutorials!

tinajain
Автор

from turtle import *
#the we don't need to type turtle in every function

bezappfuncenter
Автор

AttributeError: partially initialized module 'turtle' has no attribute 'bgcolor' (most likely dur to circular import) ??

Neeraj_Malik
Автор

With the same drawing, but I want every six consecutive circles to be the same color, how do I do that please help me

ert
Автор

Hello mate, can you help me draw this spirograph without using the circle function and it should involve only one loop
And not any def function also

ridaanasir
Автор

Helloo again, I was actually trying this code to draw the spirograph, but this time I am trying to make it like a rainbow, for example, the 6 blue circles get regrouped only by themselves then the other colours go the same. Could you help me finish it?
That's the program:

from turtle import *
speed(900)
list1 = ["brown", "red", "magenta", "blue", "green", "orange"]
for i in range (36):

pencolor(list1[i%6])
circle(100)
right(10)

ejs
Автор

I used a slightly different program:
from turtle import *
color("black")
width(2)
speed(50)

for i in range(6):
for colors in ("red", "magenta", "blue", "cyan", "green", "yellow", "orange"):
color(colors)
circle(100)
left(10)

exitonclick()

Gravitraxer_AangCZ
Автор

for use it in vs code, first use a while True

mystycloff