AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkText.SetColor Method (Byte, Byte, Byte, Byte)

Sets the color of the text object.

Syntax
Pascal
procedure SetColor(const Red: Byte; const Green: Byte; const Blue: Byte; const Alpha: Byte = $FF); overload;
Parameters 
Description 
const Red: Byte 
the red component of the color. 
const Green: Byte 
the green component of the color. 
const Blue: Byte 
the blue component of the color. 
const Alpha: Byte = $FF 
(optional) the alpha component of the color, where 0 is fully transparent and 255 (default) is fully opaque. 

This will set all characters in the text to be this color. You can set individual characters using SetCharColor.

Copyright (c) 2012. All rights reserved.