From 0867abac758c4ab549b9297293bb41f17d17aa80 Mon Sep 17 00:00:00 2001 From: Pat Wick Date: Sun, 16 Jul 2023 18:34:19 -0400 Subject: [PATCH] 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. --- drawing.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drawing.py b/drawing.py index 663ae3f..78395fa 100644 --- a/drawing.py +++ b/drawing.py @@ -7,15 +7,22 @@ from turtle import * -forward(100) +pensize(10) +colormode(255) +color((0,123,167)) +forward(400) right(360 * 2 / 5) -forward(100) +color((34,139,34)) +forward(400) right(360 * 2 / 5) -forward(100) +color((150,222,209)) +forward(400) right(360 * 2 / 5) -forward(100) +color((227,66,52)) +forward(400) right(360 * 2 / 5) -forward(100) +color((255,0,255)) +forward(400) right(360 * 2 / 5) input()