incrementing unsigned char *image
void draw(unsigned char *image) { for (int y = 0; y < HEIGHT; y++) { for (int x = 0; x < WIDTH; x++) { if (someCondition) { int red = x * 256 / WIDTH; int green = 255; int blue = y * 256 / HEIGHT; image[0] = (unsigned char)blue; image[1] = (unsigned… Read More incrementing unsigned char *image