From 8a006b135c8b55f266b677bb0667ce953710a9dd Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 6 Dec 2021 11:46:44 +0000 Subject: [PATCH] Fix basic example type error for #6 --- examples/pygame-basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pygame-basic.py b/examples/pygame-basic.py index f9d5156..ba25393 100755 --- a/examples/pygame-basic.py +++ b/examples/pygame-basic.py @@ -68,7 +68,7 @@ def update_display(): y = math.cos(time.time()) * (display_hat.HEIGHT - r) / 2 x += display_hat.WIDTH // 2 y += display_hat.HEIGHT // 2 - pygame.draw.circle(screen, (0, 0, 0), (x, y), r) + pygame.draw.circle(screen, (0, 0, 0), (int(x), int(y)), r) update_display()