Skip to content

Commit

Permalink
Tweaks Stroke with on outline 0
Browse files Browse the repository at this point in the history
  • Loading branch information
luxluth committed Jul 10, 2023
1 parent 33b963a commit a19b9cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ export class Renderer {
if (typeof tweaks.angle !== "undefined") { }
if (typeof tweaks.borderStyle !== "undefined") { }
if (typeof tweaks.outline !== "undefined") {
this.ctx.lineWidth = ruleOfThree(this.playerResX, this.canvas.width) * tweaks.outline / 100 * 2;
console.debug("tweaks.outline", tweaks.outline)
if (tweaks.outline === 0) {
this.ctx.strokeStyle = "rgba(0,0,0,0)"
} else {
this.ctx.lineWidth = ruleOfThree(this.playerResX, this.canvas.width) * tweaks.outline / 100 * 2;
}
}
if (typeof tweaks.shadow !== "undefined") {
this.ctx.shadowBlur = ruleOfThree(this.playerResX, this.canvas.width) * tweaks.shadow / 100;
Expand Down

0 comments on commit a19b9cb

Please sign in to comment.