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

6 lines
164 B
Plaintext
Raw Permalink Normal View History

2022-08-07 21:14:04 +00:00
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);
}
}