Skip to content

Commit

Permalink
Indicate that gradients and patterns are also handled
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed May 30, 2024
1 parent 0c0f374 commit c035b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jcanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function _setStyle(
// Handle functions
ctx[styleName] = styleValue.call(canvas, params);
} else {
// Handle string values
// Handle string, gradients, and patterns
ctx[styleName] = styleValue;
}
}
Expand Down

0 comments on commit c035b46

Please sign in to comment.