generated from mwc/project_drawing
This is my first submission of creating the circle for the clock. In my next submission, I will add the numbers.
This commit is contained in:
18
drawing.py
18
drawing.py
@@ -3,5 +3,21 @@
|
|||||||
# By ____(you)___________
|
# By ____(you)___________
|
||||||
#
|
#
|
||||||
# (Briefly describe what this program does.)
|
# (Briefly describe what this program does.)
|
||||||
|
import turtle
|
||||||
from turtle import *
|
from turtle import *
|
||||||
|
def draw_clock():
|
||||||
|
screen = turtle.Screen()
|
||||||
|
screen.setup(width=600, height=600)
|
||||||
|
screen.bgcolor("lightgray")
|
||||||
|
t = turtle.Turtle()
|
||||||
|
t.penup()
|
||||||
|
t.speed(0)
|
||||||
|
t.pensize(18)
|
||||||
|
t.color("black")
|
||||||
|
t.goto(0, -200)
|
||||||
|
t.pendown()
|
||||||
|
RADIUS = 200
|
||||||
|
t.circle(RADIUS)
|
||||||
|
turtle.done()
|
||||||
|
draw_clock()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user