From 7a0223954593d3d8fe6b2e30a66331e2d27442ea Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Fri, 16 Feb 2024 02:27:45 +0000 Subject: [PATCH] set color black --- animateDoorbell.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/animateDoorbell.go b/animateDoorbell.go index 8105b5a..afdba6b 100644 --- a/animateDoorbell.go +++ b/animateDoorbell.go @@ -4,6 +4,7 @@ import ( "bytes" b64 "encoding/base64" "image" + "image/color" "github.com/disintegration/imaging" ) @@ -28,4 +29,5 @@ func (a *Animation) loadImage(imgType string, img string) { a.doorbell.image = imaging.Resize(bigImage, 64, 64, imaging.Lanczos) a.ctx.Push() a.ctx.Clear() + a.ctx.SetColor(color.Black) }