Some line drawing functions

This commit is contained in:
2022-01-13 00:56:12 +01:00
parent a162680f5a
commit 54832f2636
4 changed files with 55 additions and 1 deletions

View File

@@ -60,4 +60,11 @@ void fbterm_init(struct fbinfo *fbinfo)
flip(term_fb);
term_fb = framebuffer_make_subcontext(&kernel_fb, 24, 24, 8*VGA_COLS, 16*VGA_ROWS);
setup = 1;
draw_line(&kernel_fb, 750, 850, 120, 120, RGB(255,0,0));
draw_line(&kernel_fb, 750, 750, 120, 220, RGB(0,255,0));
draw_line(&kernel_fb, 750, 850, 120, 220, RGB(0,0,255));
draw_line(&kernel_fb, 750, 800, 120, 220, RGB(255,0,255));
draw_line(&kernel_fb, 750, 850, 120, 170, RGB(255,255,0));
flip(&kernel_fb);
}