Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int random = (int) (Math.random() * 5);
- if (random == 1) {
- imagesetPixel(i, j, new Color(64, 64, (int) (Math.random() * 30) + 64, 255));
- } else {
- image.setPixel(i, j, new Color(255, 255, 220 + (int) ((Math.random() * 35)), 255));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement