Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1.  
  2.         for (h=0;h<sums.length;h++){
  3.             for (w=0;w<sums[h].length;w++){
  4.                 int a=(int)Math.round(sums[h][w]*a_ratio);//normalize
  5.                     g2d.setColor(new Color(0, 128, 255, a));
  6.                 g2d.fillRect(w,h, 2, 2);
  7.             }
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement