Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MethodsLab1::DrawLinearGradient(int x, int y, int height)
- {
- int increaseX = 0;
- for (int i = 0; i < 255; i++)
- {
- GAME_ENGINE->SetColor(COLOR(0, 255 - i, 0 + i));
- GAME_ENGINE->DrawLine(x + increaseX, y, x + increaseX, y + height);
- increaseX++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement