MeshVertexColorListSetColor Method (Int32, Int32, Int32, Int32) |
Sets or adds a vertex color to the color List.
If [index] is less than [Count], the existing vertex at [index] will be modified.
If [index] equals [Count], a new vertex is appended to the end of the vertex list.
If [index] is larger than [Count], the function will return false.
Namespace:
Rhino.Geometry.Collections
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntaxpublic bool SetColor(
int index,
int red,
int green,
int blue
)
Public Function SetColor (
index As Integer,
red As Integer,
green As Integer,
blue As Integer
) As Boolean
Parameters
- index
- Type: SystemInt32
Index of vertex color to set.
If index equals Count, then the color will be appended. - red
- Type: SystemInt32
Red component of vertex color. Value must be in the 0~255 range. - green
- Type: SystemInt32
Green component of vertex color. Value must be in the 0~255 range. - blue
- Type: SystemInt32
Blue component of vertex color. Value must be in the 0~255 range.
Return Value
Type:
Booleantrue on success, false on failure.
See Also