Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. int random = (int) (Math.random() * 5);
  2. if (random == 1) {
  3.     imagesetPixel(i, j, new Color(64, 64, (int) (Math.random() * 30) + 64, 255));
  4. } else {   
  5.     image.setPixel(i, j, new Color(255, 255, 220 + (int) ((Math.random() * 35)), 255));
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement