You can use the line drawing functionality in VisualBots to track the path of Bot objects, to generate useful geometric designs, and to create artistic patterns.
One way to draw lines is by tracing the path of a Bot object with its Pen object. You enable and disable a Pen for drawing using the Down and Up methods. When a Pen object is in the down position, a line is drawn tracing the path of the Bot object each time the Bot is moved. When the Pen object is in the up position, no line is drawn. Additionally, you can set line color, thickness, and style with the Pen object. The following example shows some simple geometric designs that can be drawn with the Pen object's Up and Down methods.

Another way to draw lines in VisualBots is with the DrawTo method of the Pen object. This method allows line drawing from a Bot object's location to the location of any other object. The line color, thickness, and style is defined by the Pen object properties. The following example illustrates the use of the DrawTo method to draw lines from each Bot object to the Center of the Screen object.

Line drawings can be made to fade over time by setting the FadeMode property of the Screen object to True. You have control over how quickly a line fades after it is draw by setting the FadeRate property. The following example illustrates the use of screen fading to show the recent path of each Bot object.
