From a90d93de4690e71535299fb9b118cf67befe3cb5 Mon Sep 17 00:00:00 2001 From: Julia Ogris Date: Mon, 18 Aug 2025 15:17:44 +1000 Subject: [PATCH] play: Simplify moving red dot sample Simplify moving red dot sample as the function call is not needed here. Every time I show somebody the Evy playground, I end up saying: this is a sample of how to move a red dot on the screen, but it could be simpler, so let's make it simpler. --- frontend/play/samples/animate/movingdot.evy | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/frontend/play/samples/animate/movingdot.evy b/frontend/play/samples/animate/movingdot.evy index a573fc7b..1cea572b 100644 --- a/frontend/play/samples/animate/movingdot.evy +++ b/frontend/play/samples/animate/movingdot.evy @@ -1,12 +1,9 @@ -for i := range 0 100 0.1 +color "red" + +for x := range 0 100 0.1 clear - dot i 50 + move x 50 + circle 10 sleep 0.01 end - -func dot x:num y:num - color "red" - move x y - circle 10 -end