void Render::DrawRectRainbow(int x, int y, int width, int height, float flSpeed, float &flRainbow)
{
Color colColor(0, 0, 0);
flRainbow += flSpeed;
if (flRainbow > 1.f) flRainbow = 0.f;
for (int i = 0; i < width; i++)
{
float hue = (1.f / (float)width) * i;
hue -= flRainbow;
if (hue < 0.f) hue += 1.f;
Color colRainbow = colColor.FromHSB(hue, 1.f, 1.f);
Render::DrawRect(x + i, y, 1, height, colRainbow);
}
}