Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijbet committed Feb 8, 2024
1 parent a3f23a5 commit a7245a0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1406,9 +1406,8 @@ export class ColorPicker
context.lineWidth = outlineWidth;
context.stroke();

const pattern = context.createPattern(this.getCheckeredBackgroundPattern(), "repeat");

if (color.alpha() < 1 && applyAlpha) {
if (applyAlpha && color.alpha() < 1) {
const pattern = context.createPattern(this.getCheckeredBackgroundPattern(), "repeat");
context.beginPath();
context.arc(x, y, radius - 3, startAngle, endAngle);
context.fillStyle = pattern;
Expand Down

0 comments on commit a7245a0

Please sign in to comment.