Public
Edited
Mar 3, 2024
1 fork
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fps = (frameCount / elapsed) * 1000
Insert cell
phase = (Math.PI / (2 * period)) * (elapsed / 1000)
Insert cell
alphaValue = Math.abs(Math.sin(phase))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// pascalsTriangle = pascal(triangleSize(radius))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
test = triangleSize(4)
Insert cell
Insert cell
Insert cell
palette1 = [
"#ffffffff",
"#000000ff",
"#cb997eff",
"#ddbea9ff",
"#ffe8d6ff",
"#b7b7a4ff",
"#a5a58dff",
"#6b705cff"
]
Insert cell
Insert cell
palette3 = [
"#ffffffff",
"#000000ff",
"#ef476fff",
"#f78c6bff",
"#ffd166ff",
"#06d6a0ff",
"#118ab2ff",
"#073b4cff"
]
Insert cell
palette4 = ["#e03c31", "#ff7f41", "#f7ea48", "#2dc84d", "#147bd1", "#753bbd"]
Insert cell
palette5 = [
"#ffffffff",
"#000000ff",
"#00296b",
"#003f88",
"#00509d",
"#fdc500",
"#ffd500",
"#ffdd33"
]
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