Returns or modifies an application interface item's color. Colors are represented as RGB colors. An RGB color specifies the relative intensity of red, green, and blue to cause a specific color to be displayed.
Rhino.AppearanceColor (intItem [, lngColor])
intItem |
Required. Number. Item number to either query or modify. The available items are as follows:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lngColor |
Optional. Number. The new color value. If omitted, the current item color is returned. |
Number |
If a lngColor is not specified, the current item color if successful. |
Number |
If a lngColor is specified, the previous item color if successful. |
Null |
If not successful, or on error. |
Dim lngOldColor, lngNewColor
lngOldColor = Rhino.AppearanceColor(0)
lngNewColor = Rhino.GetColor(lngOldColor)
If Not IsNull(lngNewColor) Then
Rhino.AppearanceColor 0, lngNewColor
End If