xxxxxxxxxx
19
function setup() {
let c = createCanvas(windowWidth, windowHeight);
c.parent(document.body)
background(0);
}
function draw() {
background(0, 10);
translate(random(width), random(height));
stroke("yellow");
line(-2, 0, 2, 0);
line(0, -2, 0, 2);
}
function windowResized() {
resizeCanvas(windowWidth, windowHeight);
background(0);
}