checking if context change is necessary
build rgb-board / build (push) Successful in 7m41s Details

main
nathan wagner 9 months ago
parent d574df9938
commit 34de0be0a1

@ -22,12 +22,12 @@ func (a *Animation) animateDoorbell() {
} else {
a.doorbell = Doorbell{}
a.countDown = 5000
a.ctx.Pop()
//a.ctx.Pop()
}
}
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.Push()
}

Loading…
Cancel
Save