
sim.setShapeColor
Sets the color of a shape
Synopsis
sim.setShapeColor(int shapeHandle, string colorName, int colorComponent, list rgbData)
sim.setShapeColor(int shapeHandle, string colorName, int colorComponent, float[3] rgbData)
Arguments
- shapeHandle: handle of the shape
- colorName: name of a color. Can be an empty string, but if a name is provided, only shapes (or sub-entities of them) with a same color name will be modified. If colorName is @compound, then all individual colors of a compound shape can be set at once
- colorComponent: color component
- rgbData: red, green and blue components of the color (3 values), or the transparency value (1 value)
Return values
See also:
|