Published
Edited
May 17, 2020
Insert cell
Insert cell
keyframeStartIndex = webP.indexOf('VP8 ')
Insert cell
webP = window.atob(
canvas.toDataURL('image/webp', 1).substring("data:image\/webp;base64,".length)
)
Insert cell
canvas = {
const canvas = DOM.canvas(image.naturalWidth, image.naturalHeight, 1);
canvas.getContext('2d').drawImage(image, 0, 0);
return canvas;
}
Insert cell
image = FileAttachment("tmpCanvas.png").image()
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