summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-06-23 22:04:26 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-06-23 22:04:26 +0300
commitf697b7e3a2882c495f91684f789ce850c95dfa6d (patch)
tree3708c89cc82e2b5f31007543b7f167fd1687876e
parentdc718d39e520da0b9e4c49d45da4f43700f0f895 (diff)
downloadwafflestone-f697b7e3a2882c495f91684f789ce850c95dfa6d.tar.xz
New demo
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 20c7737..5e54b1d 100644
--- a/main.c
+++ b/main.c
@@ -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);