added start of drawing a border for #4 , but still need to tweak it

This commit is contained in:
SemvdH
2021-08-24 23:57:39 +02:00
parent 5c6be62f94
commit 7fbf06e3a4
4 changed files with 55 additions and 16 deletions

View File

@@ -1 +1,12 @@
#include "drawing.h"
#include "drawing.h"
void drawing_draw_rectangle_open(float x, float y, float width, float heigth, int thiccness, unsigned int color)
{
for (int i = 0; i < thiccness; i++)
{
vita2d_draw_line(x, y + i, x + width, y + i, color);
vita2d_draw_line(x + i, y, x + i, y + heigth, color);
vita2d_draw_line(x, y - i, x + width, y - i, color);
vita2d_draw_line(x + width - i, y, x + width - i, y + heigth, color);
}
}