xxxxxxxxxx
20
function preload() {
avengers = loadImage("Webp.net-resizeimage.png");
}
function setup() {
createCanvas(600, 400);
x = round(random(width));
y = round(random(height));
xspeed = 2.5;
yspeed = 2.5;
}
function draw() {
background(0);
tint(r, g, b);
image(avengers, x, y);
x = x + xspeed;
y = y + yspeed;
move();
}