xxxxxxxxxx
30
let b = 0;
let arr= [];
let t;
let f;
function preload(){
arr = loadJSON("poy.json");
}
function setup() {
createCanvas(windowWidth, windowHeight);
console.log(fun.length)
}
function draw() {
background(220);
text(b, width/2, height/2)
// print(arr[b])
t = str(arr[b].title)
f = str(arr[b].body)
text(t,width/2, height/4)
text(f,width/2, height/4+10)
//text(arr[random(0, 3)], width/2, height/4)
}
function mouseClicked(){
b = int(random(0,3));
}