Skip to content

Commit

Permalink
Issue #4742: apply config opacity to RGB colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosco54 committed Oct 15, 2024
1 parent 3f73670 commit 6de0a1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/Fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ class Fill {
} else {
if (fillColor.indexOf('rgba') > -1) {
fillOpacity = Utils.getOpacityFromRGBA(fillColor)
} else {
// if rgb color, apply opacity
defaultColor = Utils.hexToRgba(Utils.rgb2hex(fillColor), fillOpacity)
}
}
if (opts.opacity) fillOpacity = opts.opacity
Expand Down

0 comments on commit 6de0a1a

Please sign in to comment.