From 3a141f98c21809baa84dd698b00174d8074f9a73 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sun, 6 Jun 2021 11:33:08 +0200 Subject: Add draw_filled_rect function --- src/main.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 9e0be39..3a15655 100644 --- a/src/main.c +++ b/src/main.c @@ -53,12 +53,15 @@ WITH REGARD TO THIS SOFTWARE. void test_rects() { for (size_t i = 0; i < 100; i++) { - draw_line(0, 10, 10, 10, 1); - draw_line(10, 10, 10, 20, 1); - draw_line(0, 0, 10, 10, 2); - draw_line(0, 20, 20, 14, 1); - draw_line(0, 0, 239, 159, 2); - draw_line(0, 159, 239, 0, 3); + // draw_line(0, 10, 10, 10, 1); + // draw_line(10, 10, 10, 20, 1); + // draw_line(0, 0, 10, 10, 2); + // draw_line(0, 20, 20, 14, 1); + // draw_line(0, 0, 239, 159, 2); + // draw_line(0, 159, 239, 0, 3); + // draw_filled_rect(10, 10, SCREEN_WIDTH - 11, SCREEN_HEIGHT - 11, 3); + // draw_filled_rect(10, 10, 13, 21, 3); + draw_filled_rect(10, 10, 20, 20, 3); } } -- cgit v1.2.1