Color Color1(255, 0, 0);
Color Color2(0, 255, 0);
static bool bSwaped = false;
static DWORD dTimer = 0;
DWORD dDelay = 1000; // 1 sec
if (!dTimer)
dTimer = GetTickCount();
if (GetTickCount() > dTimer + dDelay)
{
if (bSwaped)
*KakoitoTvoyColor* = Color1;
else
*KakoitoTvoyColor* = Color2;
bSwaped = !bSwaped;
dTimer = 0;
}