This commit is contained in:
@@ -28,7 +28,7 @@ func (a *Animation) loadImage(imgType string, img string) {
|
|||||||
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()
|
a.ctx.Push()
|
||||||
a.ctx.Clear()
|
|
||||||
a.ctx.SetColor(color.Black)
|
a.ctx.SetColor(color.Black)
|
||||||
a.ctx.SetColor(color.White)
|
a.ctx.SetColor(color.White)
|
||||||
|
a.ctx.Clear()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user