You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
742 B
JavaScript

5 years ago
var canvas;
function windowResized(){
resizeCanvas(windowWidth, windowHeight);
}
function setup() {
var canvas;
canvas = createCanvas(windowWidth, windowHeight);
canvas.position(0,0);
canvas.style("z-index","-1");
background(255)
textSize(10);
frameRate(5)
}
let n = 0;
function draw(){
if (n == 40) {
noLoop();
} else {
textSize(0);
createP(x[n]);
n += 1;
}
}
// let words = x;
// let word = random(words); // select random word
// textSize(15);
// text(word, random(windowWidth), random(windowHeight))
// textSize(32);
// text(x[5], random(windowWidth), random(windowHeight));
// }
// s
// fill(0);
// circle(50,50,5,50);