// Profile of forces and terrain int n = 10; //number of values of F calculated for each s int s = 80; //number of samples for each n int[] F = new int[11]; // Force values [-512 to +511] scaled for plot? float FF; // forces interpolated float top; // terrain value (integral of forces) float inc; // interpolated slope ( F[i+1] - F[i] ) / s int i,j; int pos; int vt = 50; //vertical translation for force curve void setup() { size(800,800); // double height to see what interpolation looks like for(i=0;i