xxxxxxxxxx
let x = 700; //the start x-position of the image
let y =0; //the start y-position of the image
let speed = 3;
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);
//textSize(40);
//fill('orange');
//text("Kakka", x,y);
}