()
| 55 | } |
| 56 | |
| 57 | public void setRandomVals() { |
| 58 | double[][][] data=griddata.getData(); |
| 59 | double[][] dataR = data[0]; |
| 60 | double r = Math.random(); |
| 61 | for(int i=0; i<numpts; i++ ) { |
| 62 | for(int j=0; j<numpts; j++ ) { |
| 63 | dataR[i][j]=(r > 0.7 ? 255.0 * i/ numpts : r > 0.5 ? 255.0 * j /numpts : 255.0 * i/ numpts * j /numpts); |
| 64 | } |
| 65 | } |
| 66 | grayscalePlot.update(); |
| 67 | } |
| 68 | |
| 69 | |
| 70 |