Dev - Lua Libraries

Lua Command: s3sprite.getCharacterColor

Parameters

Return Values

Signature

color color = s3sprite.getCharacterColor(int textID, int position)

Description

Gets the color of the character at position in the sprite text with the given textID.

Note:

position starts with 0 for the first character

Note:

All values in color will be 0 if there is no sprite text with the ID textID or if position is outside the valid range.

Note:

See data types: color to learn how colors are specified!