DrawText::SetColor

DrawText::SetColor
virtual void SetColor(Color c, UPInt startPos = 0, UPInt endPos = UPInt(-1)) = 0;
Description

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
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.