diff options
author | László Németh <nemeth@numbertext.org> | 2013-06-26 02:00:51 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2013-06-26 02:45:09 +0200 |
commit | a4c9b22fffcc976339971431deff5241429ae066 (patch) | |
tree | 373579f19c35f34c44df8a339fa315b25ccce9fc | |
parent | 938d2506d64bf995897be0c8f5b5ea50fac81302 (diff) |
fdo#66180 librelogo: clockwise HEADING
Change-Id: I1154b29119fd3fbb30d50246e94b3906bea24220
-rw-r--r-- | librelogo/source/LibreLogo/LibreLogo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index 2231646d4fb7..bf925c88b259 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -722,7 +722,7 @@ def turnright(deg): def heading(deg = -1, go = False): turtle = __getshape__(__TURTLE__) if deg == -1: - return turtle.RotateAngle / 100 + return -turtle.RotateAngle / 100 + 360 else: if deg == u'any': turtle.RotateAngle = random.random() * 36000 @@ -739,7 +739,7 @@ def heading(deg = -1, go = False): if go and n > 0: __go__(__TURTLE__, -n, False, a) else: - turtle.RotateAngle = deg * 100 + turtle.RotateAngle = -deg * 100 def rotate(shapename, deg): shape = __getshape__(shapename) |