Update 'animateDoorbell.go'
build rgb-board / build (push) Failing after 7m34s Details

main
nathan 9 months ago
parent 7c086ff848
commit aa3e51f56f

@ -23,7 +23,7 @@ func (a *Animation) animateDoorbell() {
a.ctx.Pop()
}
}
func loadImage(imgType string, img string, a *Animation) {
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)

Loading…
Cancel
Save