Writing an AlgAE Animation
AlgAE's goal is to let an instructor quickly animate code drawn from
a C++ or Java text, and to display these animations in a classroom
few objects on the screen, but drawn large enough to be visible in a large
classroom, using an overhead LCD pad or similar display device).
The basic steps in creating a Java animation are:
- Decide which new classes will be drawn.
For each such class, create and register a
Renderer for a class
provide functions that describe
What color to use when drawing objects of type
What string of text to use as the value of a
What other objects each
C object points to.
What other objects are contained inside each
- and whether those contained objects should be listed
hoizontally, vertically, or in some other pattern.
- Decide which functions should be made available in the Algorithm menu
and provide a simple driver to set up any input parameters for
each such function and to then call the function.
Within the bodies of those functions, insert calls
breakHere wherever a pause and redraw of the
data state is desired and present a list of any parameters or
local variables to be drawn.
- (Optional) Add additional calls to highlight certain objects with color changes.
Email me at email@example.com