diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-23 22:04:26 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-23 22:04:26 +0300 |
| commit | f697b7e3a2882c495f91684f789ce850c95dfa6d (patch) | |
| tree | 3708c89cc82e2b5f31007543b7f167fd1687876e | |
| parent | dc718d39e520da0b9e4c49d45da4f43700f0f895 (diff) | |
| download | wafflestone-f697b7e3a2882c495f91684f789ce850c95dfa6d.tar.xz | |
New demo
| -rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -9,7 +9,7 @@ int main(void) { setlocale(LC_ALL,""); term_init(); - fprintf(stderr, "%zux%zu\n", term_width, term_height); + //fprintf(stderr, "%zux%zu\n", term_width, term_height); Framebuffer fb = fb_new(term_width, term_height); fb_fill(fb, P_RED); @@ -24,7 +24,8 @@ int main(void) { /* Sine wave */ for (size_t x = 0; x < term_width; x++) { size_t y = ((sin(k_x * x + k_t * t) + 1.0) / 2 * term_height / 2) + (size_t)(term_height / 4); - fb.fb[y][x] = P_CYAN; + fb_vert_line(fb, x, y, term_height - 1, P_GREEN); + //fb.fb[y][x] = P_CYAN; } fb_print(fb); |
