generated from mwc/lab_turtle
Segment color, pen size, star size
I used Turtle with my students this past Fall to introduce Python using a graphical output which I thought would be more meaningful (and fun) since interacting with the console can be intimidating. Getting back to Turtle made me feel confident because I was able to remember a lot of the functions without needing the documentation. I almost re-wrote a tic-tac-toe game we did as a project, but scrapped the idea for time.
This commit is contained in:
parent
3866ac44ef
commit
0867abac75
17
drawing.py
17
drawing.py
|
@ -7,15 +7,22 @@
|
||||||
|
|
||||||
from turtle import *
|
from turtle import *
|
||||||
|
|
||||||
forward(100)
|
pensize(10)
|
||||||
|
colormode(255)
|
||||||
|
color((0,123,167))
|
||||||
|
forward(400)
|
||||||
right(360 * 2 / 5)
|
right(360 * 2 / 5)
|
||||||
forward(100)
|
color((34,139,34))
|
||||||
|
forward(400)
|
||||||
right(360 * 2 / 5)
|
right(360 * 2 / 5)
|
||||||
forward(100)
|
color((150,222,209))
|
||||||
|
forward(400)
|
||||||
right(360 * 2 / 5)
|
right(360 * 2 / 5)
|
||||||
forward(100)
|
color((227,66,52))
|
||||||
|
forward(400)
|
||||||
right(360 * 2 / 5)
|
right(360 * 2 / 5)
|
||||||
forward(100)
|
color((255,0,255))
|
||||||
|
forward(400)
|
||||||
right(360 * 2 / 5)
|
right(360 * 2 / 5)
|
||||||
|
|
||||||
input()
|
input()
|
||||||
|
|
Loading…
Reference in New Issue