Element Turtle
JXG.Turtle
↳ Turtle
This element is used to provide a constructor for a turtle.
Defined in: turtle.js.
Extends
JXG.Turtle.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new turtle
|
Field Attributes | Field Name and Description |
---|---|
Attributes for the turtle arrow.
|
- Methods borrowed from class JXG.Turtle:
- back, bk, clean, clearScreen, copyAttr, cs, evalAt, fd, forward, getHighlightPenColor, getPenAttribute, getPenColor, getPenSize, hasPoint, hideTurtle, home, ht, init, left, lookTo, lt, maxX, minX, moveTo, pd, penDown, penUp, pop, popTurtle, pu, push, pushTurtle, right, rt, setAttribute, setHighlightPenColor, setPenColor, setPenSize, setPos, showTurtle, st, X, Y, Z
Element Detail
Turtle
Creates a new turtle
-
This element has no direct constructor. To create an instance of this element you have to call JXG.Board#create
with type "turtle".
- Possible parent array combinations are:
-
{JXG.Board} board
- The board the turtle is put on.
-
{Array} parents
-
{Object} attributes
- Object containing properties for the element such as stroke-color and visibility. See JXG.GeometryElement#setAttribute
- Returns:
- {JXG.Turtle} Reference to the created turtle object.
Attribute Detail
{Curve}
arrow
Attributes for the turtle arrow.
Defined in: options.js.
Defined in: options.js.
Attributes borrowed from other Elements
Fields borrowed from other Elements
Methods borrowed from other Elements
- Methods borrowed from class JXG.Turtle:
- back, bk, clean, clearScreen, copyAttr, cs, evalAt, fd, forward, getHighlightPenColor, getPenAttribute, getPenColor, getPenSize, hasPoint, hideTurtle, home, ht, init, left, lookTo, lt, maxX, minX, moveTo, pd, penDown, penUp, pop, popTurtle, pu, push, pushTurtle, right, rt, setAttribute, setHighlightPenColor, setPenColor, setPenSize, setPos, showTurtle, st, X, Y, Z
Events borrowed from other Elements