()
| 33 | } |
| 34 | |
| 35 | void initCarpet() { |
| 36 | double[][] row = new double[3][numpts]; |
| 37 | for(int i=0; i<numdt/2; i++) { |
| 38 | for(int j=0; j<numpts; j++) { |
| 39 | row[0][j] = Math.random(); |
| 40 | row[1][j] = 0; |
| 41 | row[2][j] = 1; |
| 42 | } |
| 43 | carpet.setTopRow(row); |
| 44 | plottingPanel.render(); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | |
| 49 | public static void main(String[] args) { |