From 6ac630cd57a3d5da871cd8333ac7b0b622b1de22 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Fri, 16 Feb 2024 02:58:17 +0000 Subject: [PATCH] order matters --- animateDoorbell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/animateDoorbell.go b/animateDoorbell.go index 8fbf3d0..ada7c9d 100644 --- a/animateDoorbell.go +++ b/animateDoorbell.go @@ -28,7 +28,7 @@ func (a *Animation) loadImage(imgType string, img string) { bigImage, _, _ := image.Decode(bytes.NewReader(baseImage)) a.doorbell.image = imaging.Resize(bigImage, 64, 64, imaging.Lanczos) a.ctx.Push() - a.ctx.Clear() a.ctx.SetColor(color.Black) a.ctx.SetColor(color.White) + a.ctx.Clear() }