Dev Blog
Info
Dev
Overview
Definitions
Lua API
Data Types
Tutorials
Newsletter
Dev
Home
Data Types
Definitions
EntityDef
AttributeDef
Lua Libraries
s3sprite
Dev - Lua Libraries
Lua Command:
s3sprite
.
getCharacterColor
Parameters
int
textID
int
position
Return Values
color
color
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!