Pascal
procedure tsTextColor3ub(Red: tsByte; Green: tsByte; Blue: tsByte); procedure tsTextColor3f(Red: tsFloat; Green: tsFloat; Blue: tsFloat); procedure tsTextColor4ub(Red: tsByte; Green: tsByte; Blue: tsByte; Alpha: tsByte); procedure tsTextColor4f(Red: tsFloat; Green: tsFloat; Blue: tsFloat; Alpha: tsFloat);
C/C++
void tsTextColor3ub(tsByte Red, tsByte Green, tsByte Blue); void tsTextColor3f(tsFloat Red, tsFloat Green, tsFloat Blue); void tsTextColor4ub(tsByte Red, tsByte Green, tsByte Blue, tsByte Alpha); void tsTextColor4f(tsFloat Red, tsFloat Green, tsFloat Blue, tsFloat Alpha);
With this function you are able to set an color which will applied to all following chars. This isn't limitied to the single or block mode. It will be saved until you change the color. With the opengl renderer this is equal to the glColor and affects all other rendered primitives.
Indicates the value for one of the channels. The value may have 2 types. tsByte with an range from 0 to 255. tsFloat with an range from 0 to 1. If you call an version without the alpha parameter the value for the alpha always will be the maximum value (255 or 1).
There is no active context. See also tsContextBind.
There was no renderer set. See the parameter TS_RENDERER.