Advertisement
GaetanThibaut

code gradient methods

Nov 24th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. void MethodsLab1::DrawLinearGradient(int x, int y, int height)
  2. {
  3. int increaseX = 0;
  4. for (int i = 0; i < 255; i++)
  5. {
  6. GAME_ENGINE->SetColor(COLOR(0, 255 - i, 0 + i));
  7. GAME_ENGINE->DrawLine(x + increaseX, y, x + increaseX, y + height);
  8. increaseX++;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement