Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DrawableTurtle

Turtle that draws in a window on the screen.

Hierarchy

  • DrawableTurtle

Implements

Index

Constructors

Methods

Constructors

constructor

Methods

color

  • Change the turtle's current pen color.

    Parameters

    Returns void

forward

  • forward(units: number): void
  • Move the turtle forward a number of steps.

    Parameters

    • units: number

    Returns void

getSVG

  • getSVG(): string
  • Get the image created by this turtle.

    Returns string

    string containing image in SVG format.

turn

  • turn(degrees: number): void
  • Change the turtle's heading by a number of degrees clockwise.

    Parameters

    • degrees: number

    Returns void

Generated using TypeDoc