Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < COLS ; i++)
- {
- GRect rec = newGRect(x_axis, y_axis, WB, HB);
- setFilled(rec,true);
- setColor(rec, "BLUE");
- x_axis = x_axis + WB + 5;
- add(window, rec);
- for(int j = 0; j < ROWS; j++)
- {
- GRect rec = newGRect(x_axis, y_axis, WB, HB);
- setFilled(rec,true);
- setColor(rec, "BLUE");
- x_axis = x_axis + WB + 5;
- add(window, rec);
- }
- }
- y_axis = x_axis + WB;
- }
Advertisement
Add Comment
Please, Sign In to add comment