Public
Edited
Mar 17
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
animateScene()

Insert cell
height=1200


Insert cell
width = 1200
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
async function readDigits2(url) {
const response = await fetch("https://cdat.uprh.edu/~eramos/data/datos_pi/pi-billion.txt");
const oneMillion = await response.text();
const string_limpia = oneMillion.replace(/\s+/g, '').replace('.', '');
return string_limpia.slice(1).split('').map(Number);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
digitos = readDigits()
Insert cell
Insert cell
viewof count = Inputs.range([0, 1000000], {value: 1000000, step:10,label: "Dígitos"})
Insert cell
viewof stepSize = Inputs.range([0.1, 10], {value: 1
, step:0.1,label: "Tamaño de pasos"})
Insert cell
viewof particleSize = Inputs.range([0., 5], {value: 2
, step:0.1,label: "Tamaño de las partículas"})
Insert cell
viewof drawAxes = Inputs.toggle({label: "Ejes", value:false})
Insert cell
Insert cell
viewof metodo = Inputs.select(["Fibonacci","Trapezoedro Pentagonal"], {value: "Trapezoedro Pentagonal", label: "Método de direcciones"})
Insert cell
Insert cell
viewof rotation = Inputs.toggle({label: "Rotacion?", value: true})
Insert cell
import {record} from '@mourner/canvas-recorder'
Insert cell
html`<style>p { max-width: none; }</style>`
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