From 18b2875ddf8df144d878b7cbc41583eb14edb41d Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Fri, 16 Feb 2024 01:52:47 +0000 Subject: [PATCH] apparently need to clear, context not what expected --- animateDoorbell.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/animateDoorbell.go b/animateDoorbell.go index 5748077..8105b5a 100644 --- a/animateDoorbell.go +++ b/animateDoorbell.go @@ -22,9 +22,10 @@ func (a *Animation) animateDoorbell() { a.ctx.Pop() } } -func (a *Animation)loadImage(imgType string, img string) { +func (a *Animation) loadImage(imgType string, img string) { baseImage, _ := b64.StdEncoding.DecodeString(img) bigImage, _, _ := image.Decode(bytes.NewReader(baseImage)) a.doorbell.image = imaging.Resize(bigImage, 64, 64, imaging.Lanczos) a.ctx.Push() + a.ctx.Clear() }