generated from mwc/lab_turtle
Made a colorful house
Im excited that I figured out how to move the turtle in any direction by using angles and degrees to rotate the turtle.
This commit is contained in:
74
drawing.py
74
drawing.py
@@ -8,15 +8,69 @@ from turtle import (
|
|||||||
color,
|
color,
|
||||||
)
|
)
|
||||||
|
|
||||||
forward(100)
|
|
||||||
right(360 * 2 / 5)
|
left (90)
|
||||||
forward(100)
|
forward(200)
|
||||||
right(360 * 2 / 5)
|
right (90)
|
||||||
forward(100)
|
forward (200)
|
||||||
right(360 * 2 / 5)
|
right (90)
|
||||||
forward(100)
|
forward (200)
|
||||||
right(360 * 2 / 5)
|
right (90)
|
||||||
forward(100)
|
forward (200)
|
||||||
right(360 * 2 / 5)
|
back (80)
|
||||||
|
pendown
|
||||||
|
right (90)
|
||||||
|
color ('green')
|
||||||
|
forward (70)
|
||||||
|
right (90)
|
||||||
|
forward (40)
|
||||||
|
right (90)
|
||||||
|
forward (70)
|
||||||
|
left (90)
|
||||||
|
forward (20)
|
||||||
|
left (90)
|
||||||
|
penup ()
|
||||||
|
forward (120)
|
||||||
|
pendown ()
|
||||||
|
color ('blue')
|
||||||
|
forward (40)
|
||||||
|
right (90)
|
||||||
|
forward (40)
|
||||||
|
right (90)
|
||||||
|
forward (40)
|
||||||
|
right (90)
|
||||||
|
forward (40)
|
||||||
|
penup ()
|
||||||
|
forward (80)
|
||||||
|
pendown ()
|
||||||
|
forward (40)
|
||||||
|
right (90)
|
||||||
|
forward (40)
|
||||||
|
right (90)
|
||||||
|
forward (40)
|
||||||
|
right (90)
|
||||||
|
forward (40)
|
||||||
|
right (90)
|
||||||
|
penup ()
|
||||||
|
forward (60)
|
||||||
|
right (90)
|
||||||
|
forward (80)
|
||||||
|
pendown ()
|
||||||
|
color ('orange')
|
||||||
|
right (45)
|
||||||
|
forward (142)
|
||||||
|
right (90)
|
||||||
|
forward (142)
|
||||||
|
penup ()
|
||||||
|
back (80)
|
||||||
|
left (130)
|
||||||
|
pendown ()
|
||||||
|
color ('red')
|
||||||
|
forward (50)
|
||||||
|
right (90)
|
||||||
|
forward (20)
|
||||||
|
right (90)
|
||||||
|
forward (70)
|
||||||
|
|
||||||
|
|
||||||
input()
|
input()
|
||||||
|
|||||||
7
poetry.lock
generated
Normal file
7
poetry.lock
generated
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# This file is automatically @generated by Poetry 2.1.4 and should not be changed by hand.
|
||||||
|
package = []
|
||||||
|
|
||||||
|
[metadata]
|
||||||
|
lock-version = "2.1"
|
||||||
|
python-versions = ">=3.10,<4.0"
|
||||||
|
content-hash = "7b8fc01b274bd807fb00372bbc8e138330f15ae7978ed61e180f3b17ec076725"
|
||||||
Reference in New Issue
Block a user