SetColor sets color (R, G, B, A) to whole text or to a part of text in the positions indicated by optional parameters 'startPos' and 'endPos'.
Parameters |
Description |
Color c |
Color to be applied to the text. |
UPInt startPos = 0 |
Starting position in the the text from where text color is changed. |
UPInt endPos = UPInt(-1) |
Ending position in the text till which the text color is changed. |