Published
Edited
Jul 18, 2018
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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)
}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more