Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/taexportlogo.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-09-23 20:27:00 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-09-23 20:27:00 (GMT)
commitddbf73cbcb34f259265432b103dd8e5d22622829 (patch)
tree8eaa93fb7b1022f0743e3fb930fb655c6768d6dd /TurtleArt/taexportlogo.py
parent1b0d713c46492c3a0080d911325cd8ce6337855b (diff)
setxy2 vs setxy
Diffstat (limited to 'TurtleArt/taexportlogo.py')
-rw-r--r--TurtleArt/taexportlogo.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/TurtleArt/taexportlogo.py b/TurtleArt/taexportlogo.py
index 7fde81c..ae2cdbe 100644
--- a/TurtleArt/taexportlogo.py
+++ b/TurtleArt/taexportlogo.py
@@ -111,6 +111,7 @@ tasetshade :shade \r"
fillscreen = False
setcolor = False
setxy = False
+ setxy2 = False
pensize = False
setpensize = False
arc = False
@@ -224,6 +225,9 @@ tasetshade :shade \r"
this_stack += "clearscreen"
elif d == "setxy":
setxy = True
+ this_stack += "tasetxypenup"
+ elif d == "setxy2":
+ setxy2 = True
this_stack += "tasetxy"
elif d == "color":
this_stack += ":color"
@@ -334,7 +338,9 @@ tasetshade :shade \r"
code = "to tasetpensize :a\rsetpensize round :a\rend\r" + code
if pensize: # Return only the first argument.
code = "to tapensize\routput first round pensize\rend\r" + code
- if setxy: # Swap and round arguments
+ if setxy2: # Swap and round arguments
+ code = "to tasetxy :x :y\rsetxy :x :y\rend\r" + code
+ if setxy: # Swap and round arguments and add pen up/down
code = "to tasetxy :x :y\rpenup\rsetxy :x :y\rpendown\rend\r" + code
if arc: # Turtle Art 'arc' needs to be redefined.
c = (2 * math.pi)/360