18 lines
No EOL
319 B
C++
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;
|
|
} |