generated from mwc/project_drawing
made some code
This commit is contained in:
@@ -9,8 +9,7 @@ which allows basic formatting.
|
||||
|
||||
## Description
|
||||
|
||||
(Describe your goal for this project. If you want to link to an
|
||||
image, move the image to this directory, and then use the following syntax:
|
||||
(My goal for this project is to make 5 triforce triangles)
|
||||
|
||||

|
||||
|
||||
@@ -18,4 +17,4 @@ image, move the image to this directory, and then use the following syntax:
|
||||
|
||||
## Planning
|
||||
|
||||
(Include your planning here, including your project milestone.)
|
||||
(my plan to accomplish this is to make a loop to make the triforce triangles and then use that loop 5 times.)
|
||||
|
||||
12
drawing.py
12
drawing.py
@@ -1,7 +1,15 @@
|
||||
# drawing.py
|
||||
# ----------
|
||||
# By ____(you)___________
|
||||
# By ____(Grandville)___________
|
||||
#
|
||||
# (Briefly describe what this program does.)
|
||||
# (draws triangles.)
|
||||
|
||||
from turtle import *
|
||||
from math import sqrt
|
||||
def triangle(size):
|
||||
forward(size)
|
||||
right(60)
|
||||
triangle(100)
|
||||
input()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user