xxxxxxxxxx
23
let gif;
let x = 0;
let y=height/2;//???
let directionX = 2;
let directionY = -2;
function preload() {
gif = createImg("lunidin.gif"); //??
}
function setup() {
createCanvas(500, 500);
background(220);
}
function draw() {
gif.position(x, y);
x = x + directionX;
y = y + directionY;
}