PImage img; void setup() { size(400, 266); background(255); img = loadImage("mai.jpg"); } void draw() { int i = 0; while (i < width - 190) { image(img, i, 0); i = i + 1; } } // Solution with animation /* int x = 0; void draw() { image(img, x, 0); x++; } */