Pen Object

See Also Properties Methods Events Model
World
Bots
Bot
Pen

Exposes line drawing properties and methods.

Using the Pen Object

The Pen object is used to draw the path of Bot objects as they move around the World. The methods and properties of the Pen object control when a path should be drawn and what line styles to use in drawing.

Each Bot object has its own Pen object. Pen object properties and methods can be accessed at the Bot, Group, and Bots object levels. Pen properties are write-only when accessed from a collection and when altered, affect all objects the belong to the respective collection.

The Visible property is the default property for the Pen object.

Example

The following example uses Pen object properties and methods to draw a star shape.

Bot.Pen.Color = vbtBlueGrey
Bot.Pen.Style = vbtSolid
Bot.Pen.Width = 4
Bot.Pen.Down
For Segment = 1 To 5
      Bot.Step 80
      Bot.Turn 144
Next Segment
Bot.Pen.Up