Radio Animations


The following functions are provided for animating wireless (ex. radio) connections.

Colors can be specified by number or name. Available colors are listed in the Color Table.

The functions are automatically stubbed for textual (non-graphical) simulations. (You do not have to #ifdef them away.) The above functions are intended to replace the earlier function paint_beam, which erased underlying objects.

The following functions are provided for moving radio (or any box or entity) positions on the screen.

Example - Using the above functions to move a box:


	/* Get the box's initial position. /
	MY_POSITION( MY_NAME, &posx, &posy, &szx, &szy );

	/* First (once) erase the permanent box, and redraw moveable version. */
	place_box( posx, posy, szx, szy, 0 );
	draw_box( posx, posy, szx, szy, Green );

	While (forever)
	 {
	  DELAY(1.0);

	  /* Erase the box's old location by toggling draw with exact old values. */
	  draw_box( posx, posy, szx, szy, Green );

	  /* Update the object's new position somehow. */
	  posx = trajectory_x(CSIM_TIME);
	  posy = trajectory_y(CSIM_TIME);

	  /* Draw the box at the new location. */
	  draw_box( posx, posy, szx, szy, Green );
	 }