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

Sets the color of the sprite

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. 
Copyright (c) 2012. All rights reserved.