Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- graphics.drawRectangle(Pens.Black, x, y, width, height);
- //draw the sides of the cube black
- for (int i=-10;x<0;i++)
- graphics.drawRectangle(Pens.Black, x+i, y+i, width, height);
- //draw the front of the cube red
- graphics.fillRectangle(Brushes.Red, x, y, width, height);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement