checking if context change is necessary
All checks were successful
build rgb-board / build (push) Successful in 7m41s
All checks were successful
build rgb-board / build (push) Successful in 7m41s
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user