Intel Animation for Java* Package TutorialLesson 1: Using Surface and AnimCanvasThis applet creates an AnimCanvas and a Surface. The following command creates an AnimCanvas:
The AnimCanvas can be placed in your applet like any other awt component.
The AnimCanvas constructor automatically creates a surface. The surface can be accessed using the getSurface() method. In this applet, clicking the buttons changes the color of the Surface by calling
After that, the new color is made visible by calling
This page was last updated on Feb 11th, 1997.
|