page de presentation

PImage img;
PImage img2;
PImage img3;
int l = 940; //longueur de la fenêtre


void setup() {
  img = loadImage("nature.jpg");
  size(img.width, img.height);
  img2= loadImage("boutonC.png");
  size(img.width, img.height);
  img3= loadImage("boutonPlay.png");
  size(img.width, img.height);  
}
void draw() {
  image(img, 0, 0);
  image(img2, 590, 300);
  image(img3, 50, 300);
  textSize(100);
  text("Bienvenue", 300, 100);
  text("commande", 390, 600);
  text("play", 50, 600);

  //quitter
  fill (255);
  rect ( l - 50, 5, 40, 15);
  fill (#F50202);
  textSize(10);
  text ("quitter", l - 46, 16);
  if (mousePressed)
  {
    if (mouseX > l-50 && mouseX < l-10)
    {
      if (mouseY > 5 && mouseY < 25)
      {
        exit(); //ferme le programme
      }
    }
  }
  //info
  fill(255);
  rect(665, 385, 50, 20);
  fill(#F50202);
  textSize(10);
  text("info", 670, 400);
  if (mousePressed)
  {
    if (mouseX > 665 && mouseX <715)
    {
      if (mouseY > 385 && mouseY < 405)
      {
        info(); //afficher les commandes
      }
    }
  }
}
void info(){
  fill(255);
  textSize(25);
  text("fleches pour se deplacer dans le labyrinthe , ",300,300);
  }