Dev - Lua Libraries

Lua Command: s3sprite.setCharacterColor

Parameters

Return Values

void

- no return values

Signature

s3sprite.setCharacterColor(int textID, int position, int length, color color)

Description

Sets the color of all characters from position to position + length in the sprite text with the given textID.

Note:

position starts with 0 for the first character.

Note:

length is equal to the number of characters which will be changed. It has to be at least 1.

Note:

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