MCPcopy Create free account
hub / github.com/FastLED/FastLED / fillnoise8

Function fillnoise8

examples/SmartMatrix/SmartMatrixSketch.h:97–106  ·  view source on GitHub ↗

Fill the x/y array of 8-bit noise values using the inoise8 function.

Source from the content-addressed store, hash-verified

95
96// Fill the x/y array of 8-bit noise values using the inoise8 function.
97void 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
109void loop() {

Callers 2

loopFunction · 0.70
drawMethod · 0.50

Calls 1

inoise8Function · 0.85

Tested by

no test coverage detected