Friday 6 July 2012

How does Java support animations?




 Actually, animations are nothing more than several, or just one, picture(s). What the program is actually doing is drawing a new picture, erasing the picture, and drawing yet another new picture. For example, when a ball is moving, the program would draw a ball, colored, then when it is time to move, the program would draw a ball the color of the background in the previous spot and draw another ball of a different color in a new area, thus creating the visual motion.

No comments:

Post a Comment