wIp
This commit is contained in:
1 parent
c2dce421b3
commit
c6bb4abac0
12 files changed
+131
-144
No files matched your search
@@ -31,10 +31,12 @@ export function strokeRect(
|
||||
rect: Rect,
|
||||
color: string = "#fff",
|
||||
alpha: number = 1.0,
|
||||
lineWidth: number = 1,
|
||||
): void {
|
||||
ctx.save();
|
||||
ctx.strokeStyle = color;
|
||||
ctx.globalAlpha = alpha;
|
||||
ctx.lineWidth = lineWidth;
|
||||
ctx.strokeRect(
|
||||
rect.position.x - 0.5,
|
||||
rect.position.y - 0.5,
|
||||
|
||||
Reference in new issue
Block a user