Draw a Colorful Cube using Python Turtle

Draw a Colorful Cube using Python Turtle

Draw a Colorful Cube using Python Turtle

from turtle import*
title("programming ka keeda")
setup(750,680)
speed(2)
bgcolor("black")
penup()
goto(0,20)
pendown()

color("red")
begin_fill()

left(90)
forward(250)
left(125)
forward(120)
right(170)
forward(120)
right(76)
forward(250)
right(53)
forward(250)
right(122)
forward(250)
end_fill()

penup()
goto(-20,0)
pendown()

color("cyan")
begin_fill()

right(64)
forward(250)
left(124)
forward(250)
left(55)
forward(250)
left(72)
forward(110)
left(172)
forward(110)
right(122)
forward(240)
end_fill()

penup()
goto(20,-10)
pendown()

color("orange")
begin_fill()

left(179)
forward(257)
left(126)
forward(250)
left(52)
forward(250)
left(70)
forward(110)
left(172)
forward(100)
right(116)
forward(240)
end_fill()
hideturtle()
done()
Humari website me aane ke liye apka dhanyawaad!😊

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

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