This commit is contained in:
2025-06-03 20:40:56 +02:00
parent f12754da21
commit 4af50e5aa6
3 changed files with 21 additions and 9 deletions
+6 -5
View File
@@ -2,15 +2,16 @@
#include "bmp.h"
#include <string.h>
#define WIDTH 256
#define HEIGHT 256
#define COLOR_DEPTH 3
parameters global_params = EMPTY_PARAMS;
void generate_line(unsigned long y, char *data_buffer) {
memset(data_buffer, y, WIDTH * COLOR_DEPTH);
memset(data_buffer, y, global_params.width * COLOR_DEPTH);
}
void generate(parameters params) {
// TODO
bmp_generate(WIDTH, HEIGHT, COLOR_DEPTH, "test.bmp", generate_line);
global_params = params;
bmp_generate(params.width, params.height, COLOR_DEPTH, params.file_path,
generate_line);
}