Skip to content

Commit

Permalink
Fix teambuild transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
RiftLurker committed Mar 10, 2024
1 parent 3101118 commit cace80d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helper/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export function loadImage(path: string) {
}
export function createCanvas(width: number, height: number) {
const canvas = pureimage.make(width, height);

const ctx = canvas.getContext('2d');
ctx.clearRect(0, 0, width, height);
// canvas.toBuffer = canvasToBuffer;
return canvas;
}
Expand Down

0 comments on commit cace80d

Please sign in to comment.