Sample Program : Program Description : Drawing the Activity Box

Drawing the Activity Box
void draw_line(color, x1, y1, x2, y2)

This function draws the activity.

stm_color color;

 

This sets the color to be used for the activity.

stm_coordinate x1, y1, x2, y2;

 

This sets the coordinate locations for the activity’s control points.

{
printf("\n line from %f, %f to %f, %f in color %d",
x1, y1, x2, y2, color);
}

The information is printed in a textual report. However, you can write a program routine to use this information in a plot.