diff options
Diffstat (limited to 'src/graphics/draw.c')
-rw-r--r-- | src/graphics/draw.c | 10 |
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); + } + } +} |