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

main
Nathan Wagner 9 months ago
parent bf1c448a84
commit 18b2875ddf

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

Loading…
Cancel
Save