generated from mwc/lab_turtle
Experimented with Turtle and made a house
Excited to experiment and change the code to see the result and/if an error pops up.
This commit is contained in:
17
drawing.py
17
drawing.py
@@ -6,17 +6,22 @@ from turtle import (
|
|||||||
penup,
|
penup,
|
||||||
pendown,
|
pendown,
|
||||||
color,
|
color,
|
||||||
|
pensize
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pensize(5)
|
||||||
forward(100)
|
forward(100)
|
||||||
right(360 * 2 / 5)
|
right(90)
|
||||||
forward(100)
|
forward(100)
|
||||||
right(360 * 2 / 5)
|
right(90)
|
||||||
forward(100)
|
forward(100)
|
||||||
right(360 * 2 / 5)
|
right(90)
|
||||||
forward(100)
|
forward(100)
|
||||||
right(360 * 2 / 5)
|
color('red')
|
||||||
forward(100)
|
pensize(20)
|
||||||
right(360 * 2 / 5)
|
right(45)
|
||||||
|
forward(70)
|
||||||
|
right(90)
|
||||||
|
forward(70)
|
||||||
|
|
||||||
input()
|
input()
|
||||||
|
|||||||
Reference in New Issue
Block a user