From 89d1e4ed62776f55965ebae7a3b96f2f3f69f8d5 Mon Sep 17 00:00:00 2001 From: Codeberg Date: Tue, 2 Feb 2021 01:59:19 +0100 Subject: [PATCH] fix alpha bug for beards --- main.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index a8fd93d..5d34e4d 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "math/bits" "os" "strings" + "strconv" ) func main() { @@ -294,10 +295,10 @@ func maleAvatar(seed uint64) string { // Mustache (50% chance) g.pickAorB(0.5, g.pickOne([]string{ - "", - "", - "", - "", + "", + "", + "", + "", }), ""), // Mouth @@ -373,6 +374,7 @@ func maleAvatar(seed uint64) string { "${eyesColor}", eyesColor.html(), "${eyebrowsColor}", eyebrowsColor.html(), "${mustacheColor}", mustacheColor.html(), + "${mustacheColorAlpha}", strconv.Itoa(int(mustacheColor.a)), "${mouthColor}", mouthColor.html(), "${glassesColor}", glassesColor.html(), "${clothesColor}", clothesColor.html(),