xxxxxxxxxx
float x;
PImage img;
int w = 50;
int h = 70;
float imgx;
float imgy = 225;
void setup(){
size(600,600);
img = loadImage("flame.png");
}
void draw(){
int m = millis();
noStroke();
fill( x % 255);
// println(m);
background(250,144,135);
noStroke();
fill(211,211,211);
rect(50,290,500,20);
//image(img, x, 290);
x=x+1.8;
fill(0);
rect(50,290,x,20);
imgx=imgx+1.8;
image(img, imgx+25, imgy, w, h);
if(x>500){
x=500;
imgx = imgx-14.5;
imgy = imgy-11;
w = w + 18;
h = h + 18;
}
}