xxxxxxxxxx
let x = 700; //the start x-position of the image
let y =-20; //the start y-position of the image
let speed = 4;
function preload () {
kuva = loadImage('TIPPUVA.png');
}
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(255);
y=y+speed *(second()/10);
if ( x > windowWidth)
{
x=0;
}
image (kuva,x,y, 100,100);
}