The file I looked at was the ArrayObjects within the Arrays folder. In the unedited file, small 6 x 6 circles are generated and move back and fourth on the x-axis. After editing the file, the small circles are changed to 3 x 30 ovals that change color at random as the program runs through its loop. The path that each oval follows is left, right, and then once reaching a certain x-point travels down the y-axis off screen. The edited version also paints the oval's movement on the background rather than constantly refreshing.
Before:
After:
Code:
No comments:
Post a Comment