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

This commit is contained in:
2024-02-16 01:36:55 +00:00
parent 7c086ff848
commit aa3e51f56f

View File

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