• fullscreen
  • sketch_apr16a.pde
  • // Copyright Grégoire Gamichon HAHAHA
    // Le Salami Vaincra !
    // Vive Lunariville !
    
    
    
    void setup() {
      
    
    
        
     stroke (255, 0, 0);  // thomas = rat d'égout
     size (2000, 800);
     
    background(0, 0, 0); 
      
     
     text("Hello World !", 10, 20);
            text("-Appuyer sur une touche-", 10, 40);  
    
      
    
    }
    
    
    
     
    void draw() {
        smooth (); {
      
     
    
    
     
      
    
      
       
    
      
      
      
       if (keyPressed) {
       background(0, 0, 0); 
        text("Hello World !", 10, 20);
         text("Je suis Grégoire -Goo m' Ba- Gamichon, créateur du programme que vous utilisez !", 10, 40);
          text("Voici les commandes :", 10, 60);
           text("Clic droit (->) : Des belles fenêtres roses !", 10, 80);
            text("Clic gauche (<-) : un beau trait, rouge et continu !", 10, 100);
            text("Une touche du clavier au hasard : tout effacer !", 10, 120);
            text("Bon Dessin et, n'oubliez pas : Le Salami Vaincra !!", 100, 160);
              
            
            
         
       }     
      
    
    stroke (255, 0, 0);
    strokeWeight (10);
    fill(255, 200, 0);
    // line (mouseX, mouseY, 100, 10);
    
    if (mousePressed && (mouseButton == LEFT)) {
      strokeWeight (4) ;
      line (pmouseX, pmouseY , mouseX, mouseY);
      
    }
    
     if (mousePressed && (mouseButton == RIGHT)) {
    fill (50, 50);  
       stroke (255, 0, 255);
    rect (mouseX, mouseY, 150, 250);
    fill (0, 0); 
       stroke (255, 0, 255);
    rect (mouseX, mouseY, 150, 83);
    fill (0, 0);
       stroke (255, 0, 255);
    rect (mouseX, mouseY, 75, 250);
    fill (0, 0);
       stroke (255, 0, 255);
    rect (mouseX, mouseY, 75, 82);
    fill (0, 0);
       stroke (255, 0, 255);
    rect (mouseX, mouseY, 150, 166);
    fill (0, 0);
       stroke (255, 0, 255);
    rect (mouseX, mouseY, 150, 82);
    fill (0, 0);
    }
    
    
        }
    
    
    
      
    
    
    
     
    
     
    
    
    
    
    
    
    
    
        }
    
    

    code

    tweaks (0)

    about this sketch

    This sketch is running as Java applet, exported from Processing.

    license

    advertisement

    Grégoire Gamichon

    First Sketch For Draw

    Add to Faves Me Likey@!
    You must login/register to add this sketch to your favorites.

    It's my first work on processing and this sketch is not perfect.
    I will be update this program and I would have (?) your comment and helps

    (Sorry for my bad english, I'm a young french :p)

    You need to login/register to comment.