Class DrawableTurtle

Turtle that draws in a window on the screen.

Implements

Constructors

Methods

Constructors

Methods

  • Change the turtle's current pen color.

    Parameters

    Returns void

  • Move the turtle forward a number of steps.

    Parameters

    • units: number

      number of steps to move in the current direction; must be positive

    Returns void

  • Get the image created by this turtle.

    Returns string

    string containing image in SVG format

  • Change the turtle's heading by a number of degrees clockwise.

    Parameters

    • degrees: number

      amount of change in angle, in degrees, with positive being clockwise

    Returns void

Generated using TypeDoc