#include #include #include "canvas.h" canvas_t canvas_create(GLint w, GLint h) { color_t* data = calloc(w * h, sizeof(color_t)); for (int i = 0; i < (w*h); i++) { data[i] = COL_BLUE; } return (canvas_t){ .data = data, .w = w, .h = h }; }