Published
Edited
Jun 3, 2020
Fork of Spiral text
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
timeCurve = (time) => {
let t = time / 1000
let whole = Math.floor(t)
let decimal = t % 1
return 1000 * (whole + 1 - ((1 - decimal) ** 6))
}
Insert cell
Insert cell
Insert cell
bezierCortagesToPath = (bezierCortages) => {
let splinePath = d3.path()
let iSart = 1
let iEnd = bezierCortages.length - 3
splinePath.moveTo(bezierCortages[iEnd][4], bezierCortages[iEnd][5])
for (let i = iSart; i <= iEnd; i ++) {
splinePath.bezierCurveTo(...bezierCortages[i])
}
// splinePath.closePath()
return splinePath.toString()
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
noise = require('simplex-noise@2.4.0')
Insert cell
colorScale = d3.interpolateCool
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