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() }