Пользователь
-
Автор темы
- #1
Полоска со скита aka rainbow, взято с unknowncheats.net ( not advertising ).
[hide=0]
void DrawSkeetBar(int x, int y, int width, int height, float flSpeed, float &flRainbow)
{
Color ColorS;
flRainbow += flSpeed;
if (flRainbow > 1.f) flRainbow = 0.f;
for (int i = 0; i < width; i++)
{
float flvalue = (1.f / (float)width) * i;
flvalue -= flRainbow;
if (flvalue < 0.f)
flvalue += 1.f;
Color cRainbow = ColorS.FromHSB(flvalue , 1.f, 1.f);
Interfaces.pSurface->DrawSetColor(cRainbow.r(), cRainbow.b(), cRainbow.g(), 0xFF);
Interfaces.pSurface->DrawFilledRect(x + i, y, width, height);
}
}
[/hide]
[hide=0]
void DrawSkeetBar(int x, int y, int width, int height, float flSpeed, float &flRainbow)
{
Color ColorS;
flRainbow += flSpeed;
if (flRainbow > 1.f) flRainbow = 0.f;
for (int i = 0; i < width; i++)
{
float flvalue = (1.f / (float)width) * i;
flvalue -= flRainbow;
if (flvalue < 0.f)
flvalue += 1.f;
Color cRainbow = ColorS.FromHSB(flvalue , 1.f, 1.f);
Interfaces.pSurface->DrawSetColor(cRainbow.r(), cRainbow.b(), cRainbow.g(), 0xFF);
Interfaces.pSurface->DrawFilledRect(x + i, y, width, height);
}
}
[/hide]
Последнее редактирование модератором: