From aa3e51f56f3e6bd8afa693b1c7363e3d5e2baa65 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 16 Feb 2024 01:36:55 +0000 Subject: [PATCH] Update 'animateDoorbell.go' --- animateDoorbell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/animateDoorbell.go b/animateDoorbell.go index 9438861..1b554ab 100644 --- a/animateDoorbell.go +++ b/animateDoorbell.go @@ -23,7 +23,7 @@ func (a *Animation) animateDoorbell() { a.ctx.Pop() } } -func loadImage(imgType string, img string, a *Animation) { +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)