apparently need to clear, context not what expected
All checks were successful
build rgb-board / build (push) Successful in 2m1s

This commit is contained in:
2024-02-16 01:52:47 +00:00
parent bf1c448a84
commit 18b2875ddf

View File

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