Skip to content

Commit

Permalink
fix: canvas image color with alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
pecoram committed Nov 6, 2024
1 parent 76f3c01 commit 8ee508f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/renderers/canvas/CanvasCoreRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class CanvasCoreRenderer extends CoreRenderer {

if (ctxTexture) {
const image = ctxTexture.getImage(color);
ctx.globalAlpha = alpha;
ctx.globalAlpha = color.a ?? alpha;
if (frame) {
ctx.drawImage(
image,
Expand Down

0 comments on commit 8ee508f

Please sign in to comment.