// 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]; //course Force values float[] FF = new float[800]; //fine Forces interpolated int i,j; //int s = 80; //int n = 10; int pos; void setup() { size(800,200); // double height to see what interpolation looks like } void draw() { background(200); stroke(150); line(0,50,n*s-1,50); stroke(0); for (i = 0; i