Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boolean FirstSqaureFilled = true;
- boolean SecondSquareFilled = false;
- int row;
- int col;
- int Xsize = width / XRandom ;
- int Ysize = height / YRandom ;
- for (row = 0; row < XRandom; row++) {
- for (col = 0; col < YRandom; col++) {
- int x = Xsize * col;
- int y = Ysize * row;
- if (FirstSqaureFilled == true) {
- g.setColor(fillColor);
- g.fillRect(x, y, Xsize, Ysize);
- } else if (SecondSquareFilled == false) {
- g.setColor(borderColor);
- }
- g.fillRect(x, y, Xsize, Ysize);
- }
- }
- drawHandles(g);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement