Skip to content

Commit

Permalink
clearRectLines
Browse files Browse the repository at this point in the history
  • Loading branch information
Deseteral committed Oct 12, 2023
1 parent a23163b commit ca83c9d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/gfx/screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,27 @@ export class Screen {
this.rect(x, y, w, h, false);
}

/**
* Clears pixels in rectangle border with upper-left corner at specified position and provided width and height.
*/
public clearRectLinesV(position: Vector2, w: number, h: number): void {
this.clearRectLines(position.x, position.y, w, h);
}

/**
* Clears pixels in rectangle border.
*/
public clearRectLinesR(rect: Rectangle): void {
this.clearRectLines(rect.x, rect.y, rect.width, rect.height);
}

/**
* Clears pixel in rectangle border with upper-left corner at specified position and provided width and height.
*/
public clearRectLines(x: number, y: number, w: number, h: number): void {
this.rect(x, y, w, h, true);
}

/*
****************************************************************************
* drawRect*
Expand Down

0 comments on commit ca83c9d

Please sign in to comment.