xxxxxxxxxx
var x = 5
var y = 450
function setup() {
createCanvas(500, 450);
background(random(300), random(350), random(300))
}
function draw() {
ellipse(x,y,60,60)
ellipse(x,y,79,79)
ellipse(mouseX,mouseY,1,1)
strokeWeight(30)
stroke(255,100)
line(mouseX,mouseY,x,y)
fill(400,4,3)
line(mouseX,mouseY,300,700)
x = x + 5
square(x,y,60,60)
if (x > width){
x = random(height)
y = random(height)
background(random(300),random(350),random(300))
rect( x, y, 200, 250)
fill(20,40,20)
x = sin(frameCount/100)*width/2+width/2
var off1 = sin(x/5)*25 // offset
var off2 = cos(frameCount/100)*100 // offset
fill(0,0,255)
// ellipse(x1,y+off1,10,10)
ellipse(x,y+off2+off1,second(),second())
}
}