anim.icn: Program to show animated display of Icon source code

February 28, 1997; Gregg M. Townsend, modified by Ralph E. Griswold
Requires: Version 9 graphics
This file is in the public domain.

   anim displays a miniaturized program listing, highlighting each
line as it is executed.

   Two accompanying barcharts display execution profiles.  The one on
the extreme left shows the number of clock ticks attributable to each
source line.  The second chart shows the number of times each line was
executed.

   A chart to the right of the listing displays a time-based history
similar to that of the "roll" program (q.v.).

   usage:  anim [options] [arg...]

     -d n    decay after n new line events
     -b n    length of barcharts  (0 to disable)
     -z n    length of history  (0 to disable)
     -t n    ticks per history pixel

     -s n    vertical line spacing, in pixels
     -w n    width of one character, in pixels
     -h n    height of one character, in pixels
     -p n    set in pointsize n (OpenWindows only; overrides -w and -h)

     -P x    program text color
     -C x    comment color
     -A x    active text color
     -O x    old-text color (after fading)
     -R x    background color for barcharts and history
     -S n    spacing between sections of the display

     plus standard options from optwindow.icn
     (-F sets the color used for the barcharts and history)

     Setting -s or -p establishes good defaults for the other sizes.

   It is assumed that the program source file can be found by appending
".icn" to the icode file name.


Source code | Program Library Page | Icon Home Page