aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-06-06 11:33:08 +0200
committerBad Diode <bd@badd10de.dev>2021-06-06 11:33:08 +0200
commit3a141f98c21809baa84dd698b00174d8074f9a73 (patch)
tree959187cf4e071f221d2a94e8a7f56b64052ea7a1 /src/main.c
parent781ab3f0f32ea3db697f2c77e17099b243c3ed29 (diff)
downloadstepper-3a141f98c21809baa84dd698b00174d8074f9a73.tar.gz
stepper-3a141f98c21809baa84dd698b00174d8074f9a73.zip
Add draw_filled_rect function
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 9 insertions, 6 deletions
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.
53void 53void
54test_rects() { 54test_rects() {
55 for (size_t i = 0; i < 100; i++) { 55 for (size_t i = 0; i < 100; i++) {
56 draw_line(0, 10, 10, 10, 1); 56 // draw_line(0, 10, 10, 10, 1);
57 draw_line(10, 10, 10, 20, 1); 57 // draw_line(10, 10, 10, 20, 1);
58 draw_line(0, 0, 10, 10, 2); 58 // draw_line(0, 0, 10, 10, 2);
59 draw_line(0, 20, 20, 14, 1); 59 // draw_line(0, 20, 20, 14, 1);
60 draw_line(0, 0, 239, 159, 2); 60 // draw_line(0, 0, 239, 159, 2);
61 draw_line(0, 159, 239, 0, 3); 61 // draw_line(0, 159, 239, 0, 3);
62 // draw_filled_rect(10, 10, SCREEN_WIDTH - 11, SCREEN_HEIGHT - 11, 3);
63 // draw_filled_rect(10, 10, 13, 21, 3);
64 draw_filled_rect(10, 10, 20, 20, 3);
62 } 65 }
63} 66}
64 67