Noise-generator/srcs/effects/debug.cpp
2024-12-14 19:25:06 +01:00

18 lines
No EOL
319 B
C++

#include <cmath>
#include <cstdint>
#include "window.hpp"
#include "noise/perlin.hpp"
int test(uint32_t *img) {
static bool a = true;
for (int y = 0; y < HEIGHT; y++) {
for (int x = 0; x < WIDTH; x++) {
if (a)
img[y * WIDTH + x] = 0x202020;
else
img[y * WIDTH + x] = 0x0;
}
}
a = !a;
return 0;
}