From 0f4addd5db71b36ae6982655da73962c5d222b3f Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Fri, 16 Feb 2024 04:27:14 +0000 Subject: [PATCH] can't find what's causing the fill --- animateDoorbell.go | 2 ++ board.go | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/animateDoorbell.go b/animateDoorbell.go index ada7c9d..41db878 100644 --- a/animateDoorbell.go +++ b/animateDoorbell.go @@ -15,6 +15,8 @@ type Doorbell struct { func (a *Animation) animateDoorbell() { if a.countDown > 0 { + a.ctx.SetColor(color.Black) + a.ctx.Clear() a.ctx.DrawImageAnchored(a.doorbell.image, 0, 0, 0, 0) a.countDown -= 50 } else { diff --git a/board.go b/board.go index b5c312f..20fb325 100644 --- a/board.go +++ b/board.go @@ -51,7 +51,6 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) { default: a.animateMario() } - //a.ctx.SetColor(color.White) select { case msg := <-a.mqmsg: json.Unmarshal([]byte(string(msg.Payload())), &incoming)