summary refs log tree commit diff
path: root/bin/color.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/color.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/color.c b/bin/color.c
new file mode 100644
index 00000000..3e6c3b5a
--- /dev/null
+++ b/bin/color.c
@@ -0,0 +1,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);
+}
87c39ea06a89c&follow=1'>Match C type declarations as IdentifierTagJune McEnroe 2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe 2020-12-29Reconfigure C macro start conditionsJune McEnroe 2020-12-29Document HTML class namesJune McEnroe 2020-12-29Rename Tag class to IdentifierTagJune McEnroe 2020-12-29Change HTML class from hi to hilexJune McEnroe 2020-12-29Add hilex HTML outputJune McEnroe