Figure 4—This routine is one of four used to adjust the XVal and YVal variables. The rate that XVal is incremented depends on the XInit variable. A simple algorithm (XInit = XInit – 1) will change the rate in a linear fashion. Tune for the best picture according to the application.