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')
-rwxr-xr-xtaturtle.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/taturtle.py b/taturtle.py
index efee5cd..8fbd1e1 100755
--- a/taturtle.py
+++ b/taturtle.py
@@ -102,7 +102,8 @@ def rarc(t,a,r):
cx = t.xcor+r*cos(t.heading*DEGTOR)
cy = t.ycor-r*sin(t.heading*DEGTOR)
x,y,w,h=t.width/2+int(cx-r),t.height/2-int(cy+r),int(2*r),int(2*r)
- t.canvas.image.draw_arc(t.gc,False,x,y,w,h,int(180-t.heading-a)*64,int(a)*64)
+ if t.pendown:
+ t.canvas.image.draw_arc(t.gc,False,x,y,w,h,int(180-t.heading-a)*64,int(a)*64)
invalt(t,x-t.pensize/2-3,y-t.pensize/2-3,w+t.pensize+6,h+t.pensize+6)
right(t,a)
t.xcor=cx-r*cos(t.heading*DEGTOR)
@@ -113,7 +114,8 @@ def larc(t,a,r):
cx = t.xcor-r*cos(t.heading*DEGTOR)
cy = t.ycor+r*sin(t.heading*DEGTOR)
x,y,w,h=t.width/2+int(cx-r),t.height/2-int(cy+r),int(2*r),int(2*r)
- t.canvas.image.draw_arc(t.gc,False,x,y,w,h,int(360-t.heading)*64,int(a)*64)
+ if t.pendown:
+ t.canvas.image.draw_arc(t.gc,False,x,y,w,h,int(360-t.heading)*64,int(a)*64)
invalt(t,x-t.pensize/2-3,y-t.pensize/2-3,w+t.pensize+6,h+t.pensize+6)
right(t,-a)
t.xcor=cx+r*cos(t.heading*DEGTOR)