summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-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);