Skip to content

Commit

Permalink
Shadow opacity for mouth hair
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed May 14, 2020
1 parent e0bf4b2 commit 4d1680b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/image/assemble.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func CombineSVG(accessories Accessories) ([]byte, error) {
canvas.Gid("mouth")
if accessories.HairAsset.HairColored {
mouth.Doc = strings.ReplaceAll(mouth.Doc, "#FFFF00", accessories.HairColor.ToHTML(true))
mouth.Doc = strings.ReplaceAll(mouth.Doc, "fill-opacity=\"0.15\"", fmt.Sprintf("fill-opacity=\"%f\"", GetTargetOpacity(accessories.HairColor)))
}
if LightToDarkSwitchPoint > perceivedBrightness && accessories.MouthAsset.DarkBWColored {
mouth.Doc = strings.ReplaceAll(mouth.Doc, "white", lodBwReplacement)
Expand Down

0 comments on commit 4d1680b

Please sign in to comment.