-
Notifications
You must be signed in to change notification settings - Fork 6
/
bgt.py
28 lines (19 loc) · 803 Bytes
/
bgt.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from turtle_draw import BrachioGraphTurtle
# This is an example BrachioGraphTurtle definition.
import time
bgt = BrachioGraphTurtle(
inner_arm=8, # the length of the inner arm (blue)
outer_arm=8, # the length of the outer arm (red)
shoulder_centre_angle=-45, # the starting angle of the inner arm, relative to straight ahead
shoulder_sweep=120, # the arc covered by the shoulder motor
elbow_centre_angle=90, # the centre of the outer arm relative to the inner arm
elbow_sweep=120, # the arc covered by the elbow motor
window_size=800, # width and height of the turtle canvas
speed=0
)
if __name__ == '__main__':
bgt.draw_grid()
bgt.draw_arcs()
bgt.draw_arms()
bgt.draw_outline()
bgt.screen.exitonclick()