# GetClrModulation

Objects
Display
5.1 OC
int
int overlay_id If specified, the color modulation of the overlay is returned instead. The overlay must be set using SetGraphics first.
Determines the color modulation of an object. This is a color value which is multiplied (or added, according to BlitMode) with the object graphics. For more information see SetClrModulation().
A return value of -1 means that no color modulation is done. This corresponds to RGBa(255,255,255,255).
global func SetObjAlpha(byAlpha, obj) { var dwClrMod = obj->GetClrModulation(); if (!dwClrMod) dwClrMod = byAlpha << 24; else dwClrMod = dwClrMod & RGB(255,255,255) | byAlpha << 24; return(obj->SetClrModulation(dwClrMod)); }
Global function: only sets the alpha value of the color modulation of an object.
RGB
RGBa
SetGamma
SetClrModulation
GetColor
Sven2
2004-02