SHARE
TWEET

Untitled

capasha Apr 4th, 2016 (edited) 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int width = 25;
  2. int height = 25;
  3. int startAtX = 10;
  4. int startAtY = 10;
  5. for (int y = startAtY;y < height + startAtY;y++) {
  6.     for (int x = startAtX;x < width + startAtX;x++)
  7.     {
  8.         if (x == startAtX || y == startAtY || y == height + startAtY - 1 || x == width + startAtX - 1)
  9.         {
  10.             //draw the rectangle
  11.         }
  12.     }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top