Professional Documents
Culture Documents
/*Defining 4 points*/
/* Move the seed to the point midway between the current location and the point 1 */
if (n<=1/3) {xf = (x[0] + x[1])/2; yf = (y[0] + y[1])/2;}
/* Move the seed to the point midway between the current location and the point 2 */
if (n>1/3 && n<=2/3) {xf = (x[0] + x[2])/2; yf = (y[0] + y[2])/2;}
/* Move the seed to the point midway between the current location and the point 3 */
if (n>2/3 && n<=1) {xf = (x[0] + x[3])/2; yf = (y[0] + y[3])/2;}
quit