Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions frontend/play/samples/animate/movingdot.evy
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
for i := range 0 100 0.1
color "red"
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Setting the color outside the loop is good for performance, but this optimization may not be immediately obvious to newcomers viewing this as a learning sample. Consider adding a comment explaining why the color is set once outside the loop.

Copilot uses AI. Check for mistakes.

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
Loading