Skip to content

Commit

Permalink
fix: re-apply canvas text color
Browse files Browse the repository at this point in the history
  • Loading branch information
pecoram committed Nov 5, 2024
1 parent b5bbd43 commit 76f3c01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/text-rendering/renderers/CanvasTextRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ export class CanvasTextRenderer extends TextRenderer<CanvasTextRendererState> {
if (state.textureNode) {
// Use the existing texture node
state.textureNode.texture = texture;
// Update the alpha
state.textureNode.alpha = getNormalizedAlphaComponent(state.props.color);
} else {
// Create a new texture node
const textureNode = this.stage.createNode({
Expand Down

0 comments on commit 76f3c01

Please sign in to comment.