Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/taexportlogo.py
diff options
context:
space:
mode:
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