eastern-flames/eastern flames/scripts/draw_rectangle_width/draw_rectangle_width.gml

6 lines
164 B
Plaintext

function draw_rectangle_width(x1, y1, x2, y2, width) {
var i;
for (i=-ceil(width/2); i<floor(width/2); i++) {
draw_rectangle(x1+i, y1+i, x2+i, y2+i, true);
}
}