Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. graphics.drawRectangle(Pens.Black, x, y, width, height);
  2.  
  3. //draw the sides of the cube black
  4. for (int i=-10;x<0;i++)
  5. graphics.drawRectangle(Pens.Black, x+i, y+i, width, height);
  6. //draw the front of the cube red
  7. graphics.fillRectangle(Brushes.Red, x, y, width, height);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement