Advertisement
Guest User

Untitled

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