ColorRand Method

See Also Applies To Example Model

Returns a random color from the active ColorTable.

object expression.ColorRand

object expression    Required. An object expression that evaluates to an object in the Applies To list.

Remarks

For Bot, Cell, Bots, Cells, Group, and Region objects, this method is a shortcut to the FillColorRand method of the BotShape and CellShape objects.

Example

The following example uses the ColorBy method to randomly set the color of all Bot object's Pen color.

Bots.Pen.ColorRand