xxxxxxxxxx
let xoff = 0.0;
function setup() {
//size no processing é igual ao createCanvas
//setup executa as funções iniciais
//executa uma vez vez essa linhas
createCanvas(windowWidth, windowHeight);
background(255);
}
function draw() {
//essas linhas de codigo são executadas 60x
//background(255);
fill(255,4);
rect(0,0,width,height);
noFill();
stroke(
random(255),
random(255),
random(255));
circle(random(width), random(height), 20);
stroke(noise(millis()*0.008)*255,
noise(millis()*0.0008)*255,
noise(millis()*0.8)*width/2);
ellipse(noise(10000000000+millis()*0.0008)*width,
noise(millis()*0.0008)*height,
noise(millis()*0.0008)*255,noise(millis()*0.0008)*255);
}