rectangle()
#
DescriptionDrives Zumi in a rectangle.
#
Syntaxrectangle()
rectangle(speed=40, seconds=1.0, direction=1, ratio=2)
#
Parametersspeed: Drive speed between 0-80
seconds: Duration in seconds for shorter side
direction: 1 for counterclockwise and -1 for clockwise
ratio: Ratio of longer side to shorter side (Multiply ratio
by seconds
to get the duration of the longer side)
#
ReturnsNone