Back

TURTLE_PAPER Documentation

Introduction / Getting started

Controlling your turtle

Turtle properties

Exporting as SVG

TURTLE_PAPER

Turtle properties

An overview of other properties of the turtle.

// Get the current paper.js path (https://paperjs.org/reference/path/) of the turtle.
let path = turtle.path;
// Get a group containing all paths drawn by the turtle.
let pathGroup = turtle.pathGroup;
// Get the current position of the turtle.
let currentPos = turtle.currentPos;
// Get the current angle of the turtle.
let angle = turtle.angle;
// Get if the turtle's pen is down (true / false).
let penIsDown = turtle.penIsDown;