madison_axi package

Submodules

madison_axi.axi module

madison_axi.axi.cleanup()

IMPORTANT: Call this function at the end of your program.

madison_axi.axi.get_position()

Returns the pen’s current position.

Return value:
A list like [-102, 50] representing the pen’s current [x, y] position.
madison_axi.axi.get_x()

Returns the pen’s current x-coordinate.

Return value:
A number between -500 and 500, representing the pen’s current horizontal position.
madison_axi.axi.get_y()

Returns the pen’s current y-coordinate.

Return value:
A number between -370 and 370, representing the pen’s current vertical position.
madison_axi.axi.initialize()

IMPORTANT: Call this function at the beginning of your program.

madison_axi.axi.move_forward(num_steps)

Moves the pen forward a few steps in the direction that its “turtle” is facing.

Arguments:
num_steps - a number like 20. A bigger number makes the pen move farther.
madison_axi.axi.move_to(x, y)

Moves the pen to a particular position.

Arguments:
x - a number between -500 and 500. y - a number between -370 and 370.
madison_axi.axi.pen_down()

Puts the pen in its “down” position, so that it touches the paper.

madison_axi.axi.pen_up()

Puts the pen in its “up” position, so that it doesn’t touch the paper.

madison_axi.axi.point_in_direction(angle)

Points the pen’s “turtle” in the direction of the angle specified.

Arguments:
angle - a number between 0 and 360.
madison_axi.axi.turn_left(relative_angle)

Turns the pen’s “turtle” to the left.

Arguments:
relative_angle - a number like 10.
A bigger number makes the turtle turn farther to the left.
madison_axi.axi.turn_right(relative_angle)

Turns the pen’s “turtle” to the right.

Arguments:
relative_angle - a number like 10.
A bigger number makes the turtle turn farther to the right.

Module contents