Definition at line 142 of file noisepalette.cpp.hpp.
142 {
143
144
145
146
147 u8 dataSmoothing = 0;
149 dataSmoothing = 200 - (
speed * 4);
150 }
151
152 for (u16 i = 0; i <
width; i++) {
153 int ioffset =
scale * i;
154 for (u16 j = 0; j <
height; j++) {
155 int joffset =
scale * j;
156
158
159
160
161
162
163 data = qsub8(data, 16);
164 data = qadd8(data, scale8(data, 39));
165
166 if (dataSmoothing) {
168 u8 newdata = scale8(olddata, dataSmoothing) +
169 scale8(data, 256 - dataSmoothing);
170 data = newdata;
171 }
172
174 }
175 }
176
178
179
182}
fl::vector_psram< u8 > noise
fl::u8 inoise8(fl::u16 x, fl::u16 y, fl::u16 z)
References height, inoise8(), mX, mY, mZ, noise, scale, speed, and width.
Referenced by draw().