This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
b64 "encoding/base64"
|
||||
"image"
|
||||
"image/color"
|
||||
|
||||
"github.com/disintegration/imaging"
|
||||
)
|
||||
@@ -28,4 +29,5 @@ func (a *Animation) loadImage(imgType string, img string) {
|
||||
a.doorbell.image = imaging.Resize(bigImage, 64, 64, imaging.Lanczos)
|
||||
a.ctx.Push()
|
||||
a.ctx.Clear()
|
||||
a.ctx.SetColor(color.Black)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user