Documentation

The turtle starts with the pen up at the bottom center of a 640 by 360 rectangle.

Function penUp

  penUp()void

Lifts the pen so that following movements leave no trace.

Returns: void

Function penDown

  penDown(colorstring)void

Puts the pen down so that following movements leave a color trace.

Parameters:

  1. colorstring

    A CSS <color> value.

Returns: void

Function forward

  forward(distancenumber)void

Moves the turtle distance units forward, or backwards in case of a negative number.

Parameters:

  1. distancenumber

    The number of units to move.

Returns: void

Function rotate

  rotate(anglenumber)void

Rotates the turtle angle radians without moving.

Parameters:

  1. anglenumber

    The rotation angle, clockwise in radians.

Returns: void