From a865014e492f8719a6036ea7b5e6c313ba5c1909 Mon Sep 17 00:00:00 2001 From: nathan wagner Date: Wed, 3 Aug 2022 18:00:04 +0000 Subject: [PATCH] mario in front of green dot. --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 44f0cda..7e8a774 100644 --- a/main.go +++ b/main.go @@ -115,14 +115,13 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) { a.ctx.SetColor(color.Black) a.ctx.Clear() a.ctx.SetColor(color.RGBA{0, 255, 0, 255}) + a.ctx.DrawCircle(float64(8), float64(8), float64(a.stroke)) + a.ctx.Fill() if a.dir.X == 1 { a.ctx.DrawImageAnchored(a.image[a.updown], a.position.X, a.position.Y, 0.5, 0.5) } else { a.ctx.DrawImageAnchored(imaging.FlipH(a.image[a.updown]), a.position.X, a.position.Y, 0.5, 0.5) } - a.ctx.DrawCircle(float64(8), float64(8), float64(a.stroke)) - //a.image = imaging.FlipH(a.image) - a.ctx.Fill() return a.ctx.Image(), time.After(time.Millisecond * 50), nil }