コード例 #1
0
 def do_circle(self, arg):
     """Draw circle with given radius an options extent and steps:  CIRCLE 50"""
     circle(*str_to_tuple(arg))
コード例 #2
0
 def do_goto(self, arg):
     """Move turtle to an absolute position with changing orientation.  GOTO 100 200"""
     goto(*str_to_tuple(arg))
コード例 #3
0
 def do_right(self, arg):
     """Turn turtle right by given number of degrees:  RIGHT 20"""
     right(*str_to_tuple(arg))
コード例 #4
0
 def do_left(self, arg):
     """Turn turtle left by given number of degrees:  LEFT 90"""
     left(*str_to_tuple(arg))
コード例 #5
0
 def do_forward(self, arg):
     """Move the turtle forward by the specified distance:  FORWARD 10"""
     forward(*str_to_tuple(arg))