Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/taturtle.py
diff options
context:
space:
mode:
Diffstat (limited to 'taturtle.py')
-rw-r--r--taturtle.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/taturtle.py b/taturtle.py
index b6fc6a9..4eaa72f 100644
--- a/taturtle.py
+++ b/taturtle.py
@@ -112,6 +112,7 @@ class Turtle:
self.heading = 0
self.pen_shade = 50
self.pen_color = 0
+ self.pen_gray = 100
self.pen_size = 5
self.pen_state = True
@@ -139,6 +140,10 @@ class Turtle:
""" Set the pen color for this turtle. """
self.pen_color = color
+ def set_gray(self, gray):
+ """ Set the pen gray level for this turtle. """
+ self.pen_gray = gray
+
def set_shade(self, shade):
""" Set the pen shade for this turtle. """
self.pen_shade = shade
@@ -182,6 +187,10 @@ class Turtle:
""" Return the turtle's color. """
return(self.pen_color)
+ def get_gray(self):
+ """ Return the turtle's gray level. """
+ return(self.pen_gray)
+
def get_shade(self):
""" Return the turtle's shade. """
return(self.pen_shade)