aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/draw.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-08 17:28:22 -0700
committerChristian Cunningham <cc@localhost>2021-12-08 17:28:22 -0700
commit956d6a5376474f0f1e99977e466719f7eaa4063e (patch)
treee010f1f8c53055c41599bf9171ba59ec15837087 /src/graphics/draw.c
parent15b93ed9c47691ae0b7241100509159a38c36049 (diff)
Testing Graphics
Diffstat (limited to 'src/graphics/draw.c')
-rw-r--r--src/graphics/draw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphics/draw.c b/src/graphics/draw.c
new file mode 100644
index 0000000..62fd0f8
--- /dev/null
+++ b/src/graphics/draw.c
@@ -0,0 +1,10 @@
+#include "../graphics/draw.h"
+#include "../sys/core.h"
+
+void draw_box(unsigned short color, unsigned short x, unsigned short y, unsigned short dx, unsigned short dy) {
+ for(int i = 0; i < dy; i++) {
+ for(int j = 0; j < dx; j++) {
+ draw_pix(x+j, y+i, color);
+ }
+ }
+}