Regular API function
simSetObjectColor / sim.setObjectColor
Description
|
Sets the color of a scene object. See also other rendering related functions. |
C/C++ synopsis
|
simInt simSetObjectColor(simInt objectHandle,simInt index,simInt colorComponent,simFloat* rgbData)
|
C/C++ parameters |
objectHandle: handle of the object
index: the zero-based index of the color, if the object has several colors
rgbData: red, green and blue components of the color (3 values)
|
C/C++ return value
|
-1 if operation was not successful, 0 if the index was not found in the object, 1 otherwise.
|
Lua synopsis
|
sim.setObjectColor(int objectHandle,int index,int colorComponent,float[3] rgbData)
|
Lua parameters |
Similar to the C-function counterpart
|
Lua return values
|
|
Python synopsis |
sim.setObjectColor(int objectHandle,int index,int colorComponent,list rgbData) |
|