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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more