Fill the x/y array of 8-bit noise values using the inoise8 function.
| 95 | |
| 96 | // Fill the x/y array of 8-bit noise values using the inoise8 function. |
| 97 | void fillnoise8() { |
| 98 | for(int i = 0; i < kMatrixWidth; i++) { |
| 99 | int ioffset = scale * i; |
| 100 | for(int j = 0; j < kMatrixHeight; j++) { |
| 101 | int joffset = scale * j; |
| 102 | noise[i][j] = inoise8(x + ioffset,y + joffset,z); |
| 103 | } |
| 104 | } |
| 105 | z += speed; |
| 106 | } |
| 107 | |
| 108 | |
| 109 | void loop() { |