Class 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 |
---|---|
Turtle(board, parents, attributes)
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
Class Detail
Turtle(board, parents, attributes)
Creates a new turtle
- Parameters:
- {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.
Field Detail
{Curve}
arrow
Attributes for the turtle arrow.
Defined in: options.js.
Defined in: options.js.