xxxxxxxxxx
23
// Text noise position
//
// Jared Donovan 2022
//
// Moves some text around on the canvas using noise.
function setup() {
createCanvas(windowWidth, windowHeight);
textAlign(CENTER, CENTER);
textSize(64);
textStyle(BOLD);
fill(0);
}
function draw() {
background(100, 255, 100);
let xNoise = noise(0, frameCount / 100);
let yNoise = noise(1000, frameCount / 100);
let x = width / 2 + map(xNoise, 0, 1, -100, 100);
let y = height / 2 + map(yNoise, 0, 1, -100, 100);
text('two', x, y);
}