making a five pointed star in python is easy
source code
from turtle import *
from random import *
from time import sleep
screen = Screen()
screen.setup(width = 1.0, height = 1.0)
colormode(255)
def color1():
r=randint(0,255)
g=randint(0,255)
b=randint(0,255)
return r,g,b
speed(0)
def start():
penup()
goto(randint(0,400),randint(0,400))
pendown()
pensize(3)
bgcolor('black')
title('pattern 1')
def star():
for i in range(5):
fd(150)
right(180-36)
for i in range(5):
start()
pencolor(color1())
star()
keyword
how to draw a 5 point star in python
making a five pointed star in python is easy