creating loard ganesha2.1 apni programming
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 18 10:15:40 2021
@author: krish bhagat
"""
import turtle as t
t.pensize(5)
t.bgcolor("black")
t.pencolor("red")
t.penup()
t.goto(10,30)
t.pendown()
for I in range(10):
t.right(2)
t.forward(5)
for I in range(10):
t.right(2.7)
t.forward(5)
for I in range(13):
t.right(3.5)
t.forward(6)
for I in range(7):
t.right(3)
t.forward(10)
for I in range(10):
t.left(2.7)
t.forward(12.5)
for I in range(7):
t.left(3)
t.forward(10)
t.penup()
t.goto(60,70)
t.pensize(5)
t.pencolor("gold")
t.left(30)
t.pendown()
for I in range(7):
t.left(9)
t.backward(30)
t.penup()
t.goto(60,120)
t.right(60)
t.pensize(5)
t.pencolor("gold")
t.pendown()
for I in range(7):
t.left(9)
t.backward(30)
t.penup()
t.goto(0,190)
t.color("orange","gold")
t.pendown()
t.begin_fill()
t.circle(20)
t.end_fill()
t.penup()
t.goto(-50,-30)
t.pendown()
t.right(30)
t.color("red")
for I in range(10):
t.left(3)
t.backward(5)
t.right(90)
for I in range (10):
t.right(3)
t.forward(10)
for I in range (10):
t.left(3)
t.forward(5)
t.left(90)
t.forward(25)
t.penup()
t.goto(50,-20)
t.pendown()
t.color("white")
t.pensize(7)
for i in range(50):
t.right(1.5)
t.forward(1)
t.penup()
t.goto(100,-140)
t.pendown()
for i in range(8,1,-2):
t.pensize(i)
t.left(2)
t.forward(10)
t.hideturtle()
t.exitonclick()
Comments
Post a Comment