Geometric Animation Design in Python Turtle - Python Turtle Graphics

Geometric Animation Design in Python Turtle - Python Turtle Graphics

Geometric Animation Design in Python Turtle

from turtle import*
title("www.programmingkakeeda.com")
bgcolor("#343434")
speed(0)

color("#ff0000")
for i in range(0,10):
    penup()
    goto(0,(10-i)*25)
    pendown()
    goto(i*25,0)

    penup()
    goto(-(10-i)*25,0)
    pendown()
    goto(0,i*25)

    penup()
    goto(0,-(10-i)*25)
    pendown()
    goto(-(i*25),0)

    penup()
    goto((10-i)*25,0)
    pendown()
    goto(0,-(i*25))

color("white")
for i in range(0,10):
    penup()
    goto(0,(10-i)*20)
    pendown()
    goto(i*20,0)

    penup()
    goto(-(10-i)*20,0)
    pendown()
    goto(0,i*20)

    penup()
    goto(0,-(10-i)*20)
    pendown()
    goto(-(i*20),0)

    penup()
    goto((10-i)*20,0)
    pendown()
    goto(0,-(i*20))   

color("#ffff00")
for i in range(0,10):
    penup()
    goto(0,(10-i)*15)
    pendown()
    goto(i*15,0)

    penup()
    goto(-(10-i)*15,0)
    pendown()
    goto(0,i*15)

    penup()
    goto(0,-(10-i)*15)
    pendown()
    goto(-(i*15),0)

    penup()
    goto((10-i)*15,0)
    pendown()
    goto(0,-(i*15))       
 
hideturtle()
done()
Humari Programming Ka Keeda website me aane ke liye apka bahut bahut dhanyawaad!😊

एक टिप्पणी भेजें

0 टिप्पणियाँ
* Please Don't Spam Here. All the Comments are Reviewed by Admin.