Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int firstX(int max) {
- x=-250;
- return x;
- }
- public static int firstY(int max) {
- y=100;
- return y;
- }
- public static int nextX(int max) {
- x++;
- return x;
- }
- public static int nextY(int max) {
- y++;
- return y;
- }
- public static int nextColor() {
- int a = 100;
- while (x<250) {
- if (y >= 250) {
- x=-250;
- y=y-a;
- a=a+100;
- return EtchASketch.GAP;
- }
- else {
- return EtchASketch.BLACK;
- }
- }
- return EtchASketch.BLACK;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement