• fullscreen
  • tarea2_triangulosverdes.pde
  • void setup(){
      size(500,500);
      background(104,52,216);
    }
    void draw(){
      stroke(0);
      fill(50,234,72);
    
      triangle(mouseX,mouseY,50,400,150,400);
      triangle(mouseX,mouseY,200,450,300,450);
      triangle(mouseX,mouseY,350,400,450,400);
      triangle(mouseX,mouseY,50,100,150,100);
      triangle(mouseX,mouseY,200,50,300,50);
      triangle(mouseX,mouseY,350,100,450,100);
      triangle(mouseX,mouseY,40,200,40,300);
      triangle(mouseX,mouseY,460,200,460,300);
    }
    
    void mousePressed(){
      background(104,52,216);
    }
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Constanza Pacheco

    VerdesTriangulos

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

    Grupo de triángulos que mueve su centro siguiendo al mouse. Haciendo click se reinicia el dibujo.

    You need to login/register to comment.