martes, 15 de septiembre de 2020

Processing Trabajos

   FICHA A:

Dibujar un lienzo de 500 de ancho y 500 de alto.
 



Dibujar un lienzo de 100 de ancho y 400 de alto.




Dibujar un lienzo de 400 de ancho y 200 de alto.




FICHA B: Linea

Crea una línea que comience en el punto (30,30) y acabe en el (80,80):



Rectángulo:

Crea un rectángulo que comience en el punto (5,5) y de 80 de ancho y de 10 de alto:



Elipse:

Crea una elipse centrada en el (200,200) y con ancho 50 y alto 30:





Circulo:

Crea un circulo con centro en el (10,15) y de radio 45:





Ficha 3:

A/ Cambiemos el fondo.



B/ Rellenemos un objeto de un color.






C/ Pongamos un borde al círculo






D/ Cambiemos el color del borde




Ficha Repaso 2-3:


1-

void setup()

{
  size(400, 400); 
}

void draw ()

{
  
  background(255, 255, 255); 
  strokeWeight(1.5);
  
  line(160, 160, 160, 240); 
  
  line(160, 160, 200, 160); 
  
  line(160, 240, 240, 240);
  
  line(240, 240, 240, 200); 
  
  line(240, 200, 200, 200); 
  
  line(200, 200, 200, 160); 
  
  fill(0, 0, 0); 
  rect(160, 160, 40, 80);
  rect(200,200,40,40); 
  
}




2-

void setup()

{
  size(400, 400); //Tamaño del lienzo
}

void draw ()

{

  background(255, 255, 255); 
  strokeWeight(1.5);
  line(185, 155, 215, 155); 

  line(185, 155, 185, 185); 

  line(185, 185, 155, 185); 

  line(155, 185, 155, 215);

  line(155, 215, 185, 215); 

  line(185, 215, 185, 245); 

  line(185, 245, 215, 245); 

  line(215, 245, 215, 215); 

  line(215, 215, 245, 215); 

  line(245, 215, 245, 185);

  line(245, 185, 215, 185);

  line(215, 185, 215, 155); 

  fill(0, 0, 0); 
  rect(185, 155, 30, 90); 
  rect(155, 185, 90, 30); 
  
}









3-

void setup()

{
  size(450, 250); 
}

void draw ()

{
  
  background(0, 0, 0); 
  strokeWeight(1.5); 
  
  rect(125, 75, 200, 100, 35); 
  
}


4-

void setup()

{
  size(500, 500);
}

void draw()

{
  
  background(128); 
  strokeWeight(1.5); 
  noStroke(); 
  
  fill(255, 255, 255);
  square(50, 50, 170); 
  
  fill(210); 
  square(270, 50, 170);
  
  fill(70); 
  square(50, 270, 170); 
  
  fill(0); 
  square(270,270,170); 
  
}






5-

void setup()

{
  size(500, 500); 
}

void draw()

{
  
  background(128);
  strokeWeight(1.5); 

  fill(255, 255, 255);
  stroke(0); 
  ellipse(150, 150, 200, 200); 

  fill(210); 
  stroke(70); 
  ellipse(350, 150, 200, 200); 

  fill(70); 
  stroke(210); 
  ellipse(150, 350, 200, 200); 

  fill(0); 
  stroke(255); 
  ellipse(350, 350, 200, 200);
  
}






6-

void setup ()

{
  size(670, 320);
}

void draw()

{

  background (255, 255, 255); 
  strokeWeight(20); 
  noFill(); 

  stroke(0, 0, 255); 
  ellipse(109, 109, 200, 200); 

  stroke(0); 
  ellipse(335, 109, 200, 200); 

  stroke(255, 255, 0); 
  ellipse(220, 209, 200, 200); 

  stroke(200, 0, 0); 
  ellipse(560, 109, 200, 200); 

  stroke(0, 100, 0); 
  ellipse(445, 209, 200, 200); 
  
}




7-

 void setup()
{
  
size(800,800);
}

void draw()
{

  
  stroke(0,0,0);
fill(#FFFCFC);
ellipse(400,400,400,400);
fill(#FFFCFC);
ellipse(400,400,360,360);
fill(#030000);
stroke(#FFFCFC);
ellipse(400,400,320,320);
ellipse(400,400,280,280);
stroke(#FFFCFC);
stroke(0,0,0);
fill(#B0E4E8);
ellipse(400,400,240,240);
ellipse(400,400,200,200);
stroke(0,0,0);
fill(#F22536);
ellipse(400,400,160,160);
ellipse(400,400,120,120);
stroke(0,0,0);
fill(#EEFF08);
ellipse(400,400,80,80);
ellipse(400,400,40,40);
ellipse(400,400,0,0);

}



No hay comentarios:

Publicar un comentario

Bienvenidos

HOLA QUE TAL, BIENVENIDO  Me llamo Anthony Hernández Ponce, soy alumno de 2º de Bachillerato A y como podéis ver, este será mi querido blog....