This function draws the activity.
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.