Description:

Adds a new vertex color to the end of the color list.

Syntax:
public int Add(
Color color
)
Parameters:
  • color
  • Type: Color
  • Color to append.
Returns:
Type: int
The index of the newly added color.
Available since:
5.0

Description:

Adds a new vertex color to the end of the color list.

Syntax:
public int Add(
int red,
int green,
int blue
)
Parameters:
  • red
  • Type: int
  • Red component of color, must be in the 0~255 range.
  • green
  • Type: int
  • Green component of color, must be in the 0~255 range.
  • blue
  • Type: int
  • Blue component of color, must be in the 0~255 range.
Returns:
Type: int
The index of the newly added color.
Available since:
5.0

Nothing found