Definition at line 143 of file noisepalette.cpp.hpp.
143 {
144
145
146
147
148 u8 dataSmoothing = 0;
150 dataSmoothing = 200 - (
speed * 4);
151 }
152
153 for (u16 i = 0; i <
width; i++) {
154 int ioffset =
scale * i;
155 for (u16 j = 0; j <
height; j++) {
156 int joffset =
scale * j;
157
159
160
161
162
163
164 data = qsub8(data, 16);
165 data = qadd8(data, scale8(data, 39));
166
167 if (dataSmoothing) {
169 u8 newdata = scale8(olddata, dataSmoothing) +
170 scale8(data, 256 - dataSmoothing);
171 data = newdata;
172 }
173
175 }
176 }
177
179
180
183}
fl::vector_psram< u8 > noise
fl::u8 inoise8(fl::u16 x, fl::u16 y, fl::u16 z) FL_NO_EXCEPT
8-Bit, fixed point implementation of Perlin's noise.
References fl::FL_NO_EXCEPT, height, inoise8(), mX, mY, mZ, noise, scale, speed, and width.
Referenced by draw().