Color Property
The Color property sets the color as an RGB value or srfColor enumeration.
Syntax
object. Color = Color
Parameter |
Type |
Description |
Color |
Sets line and fill color. |
Remarks
Color is a property of ColorRGBA objects which are containers for all the color properties of a given Format object.
Color is still supported as a base property of Format objects for backwards compatibility. When setting the color of a Format object use the appropriate ColorRGBA object, as seen in the examples below.
Color values can also be set as a component of an RGB channel by using the Red, Green, or Blue properties.
Color does not return a value. Use the Red, Green, and Blue properties to return the color of an object.
Example
This example demonstrates how to set the text color of a text object to red.
ColorRGBA.Color = srfColorRed
Used by: ColorRGBA object, FontFormat object, GLFillFormat object.