top of page

FIGURAS

int posicionxCirculo = 20;
int posicionyCirculo = 20;
int velocidadx =2;
int velocidady =2;

void setup() {
  frameRate (80);
  size(500, 300);
  background(0);
}
void draw() 
{
  background(0);

  ellipse (posicionxCirculo, posicionyCirculo, 50, 50);
  fill (0, 0, 255);

  posicionxCirculo = posicionxCirculo + velocidadx;
  posicionyCirculo = posicionyCirculo + velocidady;

  if (posicionxCirculo > width-25) {
    velocidadx= -2;
  }

  if (posicionyCirculo > height-25) {
    velocidady= -2;
  }

  if (posicionxCirculo  < 0+25) {
    velocidadx = +2;
  }

  if (posicionyCirculo  < 0+25) {
    velocidady= +2;
  }
}


 

Posición X,Y.

int rojo;
int posY;
int r;

void setup()
{
size (500,300);
background (0);


}

void draw(){
noStroke();
smooth();

int rojo = 30;
int posY = 250;
int r= 300;

while (rojo<=100)

{
fill (rojo,10,100);
ellipse (250, 150,r,r);


rojo=rojo +3;
r=r-10;
}

}

Elipse degradada color

Elipse

Mandala

float rotacion;
float posx;
float posy;


void setup()
{
size (500 , 300);
background (0);
rectMode (0);

rotacion=-100;
}

void draw()
{
posx=120;
posy=100;
pushMatrix();
translate (height/2, width/2);
rotate (-rotacion);
rect(5,50,20,50);
fill (random(255), random (255), random (255));
popMatrix();


pushMatrix();
translate (height/2, width/2);
rotate (rotacion);
rect (10,10,30,30);
fill (0, 255, 0);
posx=20;
posy=50;
popMatrix();


pushMatrix();
translate (height/2, width/2);
rotate (rotacion);
rect (10,100,10,20);
fill (255, 0, 0);
posx=20;
posy=50;
popMatrix();


rotacion =rotacion + 1;

}

mandala
Figura arte

Figura arte

Figura Arte - Processing

Figura Arte - Processing interactivo

void setup() {
  size(500, 300);
  background(0);
}

boolean seMueve = true;


void draw() 
{
  background(0);
 
 
  //triangulo morado(1)
stroke(0);
  fill(45,19,106);
  triangle(0,0, 50, 150, 0, 150);
  
//triangulo rojo(2)
stroke(0);
  fill(204,41,58);
  triangle(0,0, 100, 0, 50, 150);
      
//triangulo amarillo(3)
stroke(0);
  fill(254,207,57);
  triangle(100,0, 150, 150, 50, 150);
  
//triangulo azul(4)
stroke(0);
  fill(12,86,191);
  triangle(100,0, 150, 150, 200, 0);
        
  //triangulo rojo(5)
  //stroke(0);
  //fill(225,63,58);
  //triangle(200,0, 250,150, 150, 150);

  
  //triangulo azul(6)
stroke(0);
  fill(12,86,191);
  triangle(200,0, 250, 150, 300, 0);
  
  //triangulo rojo(7)
stroke(0);
  fill(189,22,29);
  triangle(300,0, 350, 150, 250, 150);
  
    //triangulo rosado(8)
stroke(0);
  fill(211,99,113);
  triangle(300,0, 350, 150, 400, 0);
  
    //triangulo azul(9)
stroke(0);
  fill(12,86,191);
  triangle(400,0, 450, 150, 350, 150);
  
  //triangulo amarillo(10)
stroke(0);
  fill(251,230,59);
  triangle(400,0, 500,0, 450, 150);
  
    //triangulo naranja(11)
stroke(0);
  fill(228,101,8);
  triangle(500,0, 450,150, 500, 150);
  
    //triangulo morado(12)
stroke(0);
  fill(251,230,59);
  triangle(50,150, 0, 300, 0, 150);
  
    //triangulo azul(13)
stroke(0);
  fill(12,86,191);
  triangle(50,150, 100, 300, 0,300);
  
  //triangulo azul(14)
stroke(0);
  fill(1,24,126);
  triangle(50,150, 150, 150, 100,300);
  
    //triangulo amarillo(15)
stroke(0);
  fill(251,230,59);
  triangle(150,150, 200, 300, 100,300);
  
      //triangulo azul(16)
stroke(0);
  fill(251,230,59);
  triangle(150,150, 200, 300, 100,300);

//triangulo rojo(17)
stroke(0);
  fill(228,101,8);
  triangle(150,150, 200, 300, 250, 150);
  
  //triangulo amarillo(18)
stroke(0);
  fill(189,22,29);
  triangle(250,150, 300, 300, 200, 300);

    //triangulo amarillo(19)
stroke(0);
  fill(251,230,59);
  triangle(250,150, 350,150, 300, 300);

    
        //triangulo rosado(20)
stroke(0);
  fill(211,99,113);
  triangle(350,150, 400, 300, 300, 300);

    //triangulo amarillo(19)
stroke(0);
  fill(251,230,59);
  triangle(350,150, 450,150, 400, 300);
  
  //triangulo rojo(20)
stroke(0);
  fill(228,101,8);
  triangle(450,150, 500, 300, 400, 300);

  
      //triangulo azul(13)
stroke(0);
  fill(12,86,191);
  triangle(450,150, 500, 150, 500,300);
  
    //bola roja
  stroke(0,  0,  255);
  fill (255, 0,  0);
   ellipse(100, 150,30, 30);
   
       //bola azul
  stroke (12,86,191);
  fill (0, 0,  255);
   ellipse(200, 150,30, 30);
   
          //bola azul
  stroke(0,  0,  255);
  fill (0, 0,  255);
   ellipse(300, 150,30, 30);

   
       //bola roja
  stroke(0,  0,  255);
  fill (255, 0,  0);
   ellipse(400, 150,30, 30);
   
   
   //bolitas de navidad
   
 stroke(random(255), random (255), random (255));
  fill (random(255), random (255), random (255));
   ellipse(25, 70,20, 20);
   
    stroke(random(255), random (255), random (255));
  fill (random(255), random (255), random (255));
   ellipse(77, 70,20, 20);
   
     stroke(random(255), random (255), random (255));
  fill (random(255), random (255), random (255));
   ellipse(177, 70,20, 20);
   
      stroke(random(255), random (255), random (255));
  fill (random(255), random (255), random (255));
   ellipse(222, 70,20, 20);
   
        stroke(random(255), random (255), random (255));
  fill (random(255), random (255), random (255));
   ellipse(322, 70,20, 20);
   
      stroke(random(255), random (255), random (255));
  fill (random(255), random (255), random (255));
   ellipse(375, 70,20, 20);
   
        stroke(random(255), random (255), random (255));
  fill (random(255), random (255), random (255));
   ellipse(474, 70,20, 20);


  // triangulo invisible
  
  stroke(0);
  fill(225,63,58);
   //triangle(200,0, 250,150, 150, 150);
 //triangle(mouseX  , mouseY  , mouseX +50, mouseY +150, mouseX -50, mouseY +150 );
 
 if(seMueve == true) {

 triangle(mouseX  , mouseY  , mouseX +50, mouseY +150, mouseX -50, mouseY +150 );
}
else {
  triangle(200,0, 250,150, 150, 150);
 
  
}

}

void mouseClicked () {
if(seMueve == true) {

seMueve = false;
}
else {

  seMueve = true;
}


}

 

 

 

 

 

 


  

bottom of page