Skip to content

Commit

Permalink
Merge pull request allegrocy#6 from RiftLurker/transparent-teambuilds
Browse files Browse the repository at this point in the history
Fix teambuild transparency
  • Loading branch information
3vcloud authored Apr 27, 2024
2 parents 3101118 + cace80d commit f788d7a
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 f788d7a

Please sign in to comment.