Simulation Model Icon Animations

For Fixed Sized Images
Non Re-Sizable Images


The routines described here, map to the screen pixel-for-pixel. Zooming or changing the window size does not resize the images. For resizable images, see Resizable Images.

Instead of animating graphical simulations by simply highlighting the rectangular boxes with colors, you can replace the boxes with arbitrary drawings, -or actual images-, of meaningful objects.

You can do this with the following built-in routines:

  • read_ppm_image - Reads an image into an image data structure.
  • display_image - Replaces a named box on your diagram with an image. You use it similar to the highlight_box() function.
You can graphically show your components in various states by preloading images depicting each state into different image variables at start-up. Then change the component's image according to it's state.

The following is a detailed description of the image-display routines: