Interface TurtleOptions

A set of options to apply to a Turtle instance.

Hierarchy

  • TurtleOptions

Properties

defaultColor?: ColorResolvable

The default drawing color.

Default

'[255, 0, 255]'
disableWrapping?: boolean

Wether or not to disable wrapping the turtle around the canvas. The turtle goes around when overflowing.

Default

false
hidden?: boolean

Wether the turtle should be hidden.

Default

false
lineCap?: LineCap

The default lineCap value.

Default

'round'
shape?: Vertex2D[]

The shape of the turtle.

Default

BuiltInShapes.Default
startAngle?: number

The angle at which to start drawing.

Default

0
startPostition?: Vertex2D

The position on which to start drawing.

Default

'{x: 0, y: 0}'
width?: number

The default drawing width.

Default

2

Generated using TypeDoc