xxxxxxxxxx
19
// Google Sheets import test
// Imports a Google Sheet that has been published to the web
// Takes a while to update when the data is changed
const url = "https://docs.google.com/spreadsheets/d/e/2PACX-1vSJ7XjO7GNDEh3NJuvwDikUeT6xWaZuLZ8HgV4r5J9C4MZhqoIRYhBRCC4CfNHOu5PmBGpbpqxn9v09/pub?gid=0&single=true&output=csv"
let data
function preload() {
data = loadTable(url, "csv", "header")
}
function setup() {
createCanvas(400, 400);
console.log(data.getColumn("greetings"))
}
function draw() {
background(220);
}