OBJECTIVE: Make a beautiful clock in this project.
CODE:
import turtle
screen=turtle.Screen()
clock=turtle.Turtle()
screen.setup(500,500)
clock.pensize(6)
clock.shape('turtle')
clock.penup()
clock.pencolor('black')
counter=0
for i in range(12):
counter=counter+1
clock.penup()
clock.setheading(-30*i+60)
clock.forward(100)
clock.pendown()
clock.forward(30)
clock.penup()
clock.forward(20)
clock.write(str(counter),align="center",font=("calibri", 16))
if counter==12:
counter=0
clock.home()
clock.screen.bgpic("supergirl.png")
clock.setpos(0,-200)
clock.pendown()
clock.pensize(20)
clock.pencolor('red')
clock.circle(200)
clock.hideturtle()