paths = {
noise.seed(seed)
const paths = []
const p = ([x, y]) => ([
x + mag * noise.simplex2(x / period, y / period),
y + mag * noise.simplex2(x / period + 123, y / period)
])
const p2 = ([x, y], i) => ([
x + mag * noise.simplex3(x / period, y / period, i/period2),
y + mag * noise.simplex3(x / period + 123, y / period, i/period2)
])
for (let i = -num; i < num; i+=step) {
const left = [Math.sin(i/am) * 500, Math.sin(i/(am * a) + 10) * 300]
const right = [Math.cos(i/bm) * 500, Math.sin(i/(bm * b) + 20) * 300]
paths.push(split(left, right, 400))
}
return mapPoints(paths, p2)
}