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)