blob: 3e6c3b5a1bd7fbbe04f35d9fcf22eb1694c695f5 (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
 | #include <stdint.h>
static uint32_t color;
void draw(uint32_t *buf, uint32_t xres, uint32_t yres) {
    for (uint32_t i = 0; i < xres * yres; ++i) {
        buf[i] = color;
    }
}
void input(char c) {
    color = color << 4 | (c & 0xF);
}
 |