checking if context change is necessary
All checks were successful
build rgb-board / build (push) Successful in 7m41s

This commit is contained in:
nathan wagner
2024-02-16 15:23:06 +00:00
parent d574df9938
commit 34de0be0a1

View File

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