Public
Edited
Jun 4, 2020
Fork of Spiral text
Insert cell
Insert cell
Insert cell
Insert cell
p = {
return {
m: {t: 100, r: 50, b: 100, l: 50},
// m: {t: 10, r: 10, b: 10, l: 10},
w: 594,
h: 841,
// h: 594, //841,
lineHeight: 10,
innderRadius: 20,
textLength: 9800,
}
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
pointsToBezierCorteges = (points) => {
return Spline.toPoints(points)
}
Insert cell
Insert cell
Insert cell
// transformSublines = (subLines) => {
// for (let i = 0; i < subLines.length; i++) {
// for (let j = 0; j < subLines[i].length; j++) {
// subLines[i][j] = transformXY(subLines[i][j])
// }
// }
// // console.log(subLines)
// return subLines
// }
Insert cell
// transformXY = (xy) => {
// let [x, y] = xy
// // let time = + new Date()
// // let x2 = x + 100 * Math.sin(time / 150 + y / 150)
// // let y2 = y
// let x2 = x + (Math.random() * 2 - 1) * distanceToCenter(x, y) / 100
// let y2 = y + (Math.random() * 2 - 1) * distanceToCenter(x, y) / 100
// return [x2, y2]
// }
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
textSea = 'Hello There '
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