Sets the fill background color of the specified class. The color must be specified using the RGB components of the desired color. RGB values are in the range of 0~65535.
PROCEDURE SetClFillBack(
className : STRING;
r,g,b : LONGINT);def vs.SetClFillBack(className, r,g,b):
return None| Name | Type | Description |
|---|---|---|
| className | STRING | Name of class. |
| color | LONGINT | RGB color value. In Python, the RGB value must be passed in as tuple. See the example below. |
Changes the fill background color setting of the class named className.
ColorIndexToRGB(98,cRed,cGrn,cBlu);
SetClFillBack('Grassy Cover',cRed,cGrn,cBlu);cRed,cGrn,cBlu = ColorIndexToRGB(98)
SetClFillBack('Grassy Cover',(cRed,cGrn,cBlu))
# or work with the tuple result directy
clr = ColorIndexToRGB(98)
SetClFillBack('Grassy Cover', clr)Availability: from VectorWorks8.0