Turtle

public class Turtle

The turtle that draws graphics.

  • Creates a new instance.

    Declaration

    Swift

    public init(@TurtleBuilder builder: () -> [TurtleCommand])

    Parameters

    builder

    The commands sent to the turtle.

  • Undocumented

    Declaration

    Swift

    public private(set) lazy var lines: [[TurtlePoint]] { get set }