function build (p5, s) {
s.paths = [];
let xdetail = 640;
let ydetail = 640;
let xlo = 1 * p5.width / 4;
let xhi = 3 * p5.width / 4;
let ylo = 1 * p5.height / 4;
let yhi = 3 * p5.height / 4;
let xset = linspace (xdetail, xlo, xhi);
let yset = linspace (ydetail, ylo, yhi);
for (let xiter = 0; xiter < xset.length; xiter++) {
let path = [];
for (let yiter = 0; yiter < yset.length; yiter++) {
let xin = xset[xiter];
let yin = yset[yiter];
path.push ( { x: xin, y: yin } );
}
s.paths.push (path);
}
for (let eout of s.paths) {
for (let ein of eout) {
ein.ox = ein.x;
ein.oy = ein.y;
}
}
}