Draw Star Using Python Graphics

Hello, friends also I create another Python Programming. This called for “Draw Star Using Python Graphics | Source Code” Bellow, I also attached this programming video and their source code everyone sees that.

You May Liked This

Draw Star Using Python Graphics

Source Code:–

import turtle
a=turtle.Turtle()
a.getscreen().bgcolor("black")
a.penup()
a.goto(-200, 100)
a.pendown()
a.color("yellow")
a.speed(25)
def star(turtle, size):
    if size<=10:
        return
    else:
        turtle.begin_fill()
        for i in range (5):
            turtle.pensize(2)
            turtle.forward(size)
            star(turtle, size/3)
            turtle.left(216)
            turtle.end_fill()
star(a, 360)
turtle.done()

You May Liked This

Abhijit patrahttps://www.abhijitpatra.com
If you think about the current society, you can see that the society has come a long way, say technical or science or sports or so on. I have created this website with all those aspects in mind. My goal would be to make everyone aware of these issues in today’s society. Thank You

Recent Comments