fully removing context stuff.
build rgb-board / build (push) Successful in 2m11s Details

main
nathan wagner 9 months ago
parent 34de0be0a1
commit c64a6bfe42

@ -22,12 +22,10 @@ func (a *Animation) animateDoorbell() {
} else { } else {
a.doorbell = Doorbell{} a.doorbell = Doorbell{}
a.countDown = 5000 a.countDown = 5000
//a.ctx.Pop()
} }
} }
func (a *Animation) loadImage(imgType string, img string) { func (a *Animation) loadImage(imgType string, img string) {
baseImage, _ := b64.StdEncoding.DecodeString(img) baseImage, _ := b64.StdEncoding.DecodeString(img)
bigImage, _, _ := image.Decode(bytes.NewReader(baseImage)) bigImage, _, _ := image.Decode(bytes.NewReader(baseImage))
a.doorbell.image = imaging.Resize(bigImage, 64, 64, imaging.Lanczos) a.doorbell.image = imaging.Resize(bigImage, 64, 64, imaging.Lanczos)
//a.ctx.Push()
} }

Loading…
Cancel
Save