Sets the fill color based on a specified object property value and the associated ColorTable. The color value is determined by scaling a range of property values to the range of color table entries.
object expression.FillColorBy(Property, [Low], [High])
object expression Required. An object expression that evaluates to an object in the Applies To list.
Property Required String. The name of an existing object property or Tag.
Low Optional Double. The low property value to assign to the low palette entry. The default is the minimum of property.
High Optional Double. The high property value to assign to the high palette entry. The default is the maximum of property.
The FillColorBy method only considers object property and Tag values that can be interpreted as numeric.
The FillColorBy method first searches the Tags collection for property. If not found, then all built-in property names are searched.
In the following example, the fill color for all Bot objects is set according to each Bot object's speed.
Bots.Shape.FillColorBy "Speed"