added start of drawing a border for #4 , but still need to tweak it
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -3,17 +3,17 @@
|
||||
|
||||
#include <vita2d.h>
|
||||
|
||||
/**
|
||||
* @brief draws a line with a specified width
|
||||
*
|
||||
* @param x0 the start x coordinate of the line
|
||||
* @param y0 the start y coordinate of the line
|
||||
* @param x1 the end x coordinate of the line
|
||||
* @param y1 the end y coordinate of the line
|
||||
* @param thiccness the width of the line
|
||||
* @param color the color of the line
|
||||
*/
|
||||
void drawing_draw_line_thiccness(float x0, float y0, float x1, float y1, int thiccness, unsigned int color);
|
||||
// /**
|
||||
// * @brief draws a line with a specified width
|
||||
// *
|
||||
// * @param x0 the start x coordinate of the line
|
||||
// * @param y0 the start y coordinate of the line
|
||||
// * @param x1 the end x coordinate of the line
|
||||
// * @param y1 the end y coordinate of the line
|
||||
// * @param thiccness the width of the line
|
||||
// * @param color the color of the line
|
||||
// */
|
||||
// void drawing_draw_line_thiccness(float x0, float y0, float x1, float y1, int thiccness, unsigned int color);
|
||||
|
||||
/**
|
||||
* @brief draws an open rectangle
|
||||
|
||||
Reference in New Issue
Block a user