fully removing context stuff.
All checks were successful
build rgb-board / build (push) Successful in 2m11s
All checks were successful
build rgb-board / build (push) Successful in 2m11s
This commit is contained in:
@@ -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()
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user