diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-21 15:01:30 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-21 15:01:30 +0300 |
| commit | cb49c9bfa880464862b99d9b7a47a927552989d4 (patch) | |
| tree | 5528753165c97c3b2461f85d045eae34c84ddbb0 /main.c | |
| parent | 3fed5969034c464e36358fc45a99b57b1f308c11 (diff) | |
| download | wafflestone-cb49c9bfa880464862b99d9b7a47a927552989d4.tar.xz | |
Output
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,12 +1,20 @@ #include <stdio.h> #include <unistd.h> +#include <math.h> #include "framebuffer.h" int main(void) { term_init(); + fprintf(stderr, "%zux%zu\n", term_width, term_height); - fprintf(stderr, "Not yet implemented\n"); + Framebuffer fb = fb_new(term_width, term_height); + fb_fill(fb, P_RED); + for (int i = 0; i < 10; i ++) { + fb.fb[i][i] = P_CYAN; + fb_print(fb); + usleep(1000000); + } char c; get_input(c); |
