Ziro Studio now
Code saved successfully.
Loading...

Ziro Studio

© 2020 ZeroUI, Inc. Version 1.0.0

def main(): """This function will be called during execution.""" print("Hello world!")

Help Menu

Physical Robot Commands

set_motor_power('color', power):
Assigns all motors of a certain color to a power between -100 and 100.

set_motor_angle('color', angle):
Assigns all motors of a certain color to an angle between -90° and 90°.

stop_all_motors():
Stops all motors.

Virtual Robot Commands

virtual_set_forward_speed(speed):
Sets the forward speed of the virtual robot.

virtual_set_turn_speed(speed):
Sets the angular (turning) speed of the virtual robot.

virtual_set_pen_down():
Puts the virtual pen down onto the canvas.

virtual_set_pen_up():
Lifts the virtual pen up from the canvas.

virtual_set_pen_color('color'):
Changes the color of the virtual pen. The color can be specified in the format 'color' or 'rgb(R, G, B)'.

virtual_set_pen_thickness(thickness):
Changes the thickness of the virtual pen. The thickness is 3 by default.

virtual_set_canvas_color('color'):
Changes the color of the canvas. The color can be specified in the format 'color' or 'rgb(R, G, B)'.

virtual_set_robot_color():
Changes the color of the virtual robot.

Miscellaneous

proceed(time):
Waits for time seconds before letting the rest of the code run.

print("message"):
Writes the message to the console and adds a new line afterwards.

Connection Status:
Red: Not Connected
Green: Connected

Available Motor Colors: Violet, Indigo, Blue, Green, Yellow, Orange

Console

Virtual Robot

Examples