How to show an image with Pimage during X seconds?

Hi!

I'm trying to show an image with Pimage during X seconds.

Here is my actual code (simplified):

PImage Image_Caisse_Claire;
PImage Image_Caisse_Claire_Hot;

void setup()
{
  size(1080, 610);
}

void draw()
{
  Image_Caisse_Claire=loadImage("Caisse_Claire.png");
  Image_Caisse_Claire_Hot=loadImage("Caisse_Claire_Hot.png");
}

void keyPressed()
{
  if (keyPressed == true && key == 'a' && menu == 2) 
  {
    image(Image_Caisse_Claire_Hot, 140, 310, 258, 136); // My problem is here
  }
}

Thank you!

Answers

Sign In or Register to comment.