Alyssa Ruts: Proyecto final, Teselación

De Casiopea


TítuloProyecto final
Tipo de ProyectoProyecto de Curso
Palabras Claveproyecto final
AsignaturaImagen Escrita 2012,
Del CursoImagen Escrita 2012,
CarrerasDiseño Gráfico"Diseño Gráfico" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property., Diseño Industrial"Diseño Industrial" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property.
Alumno(s)Alyssa Ruts
ProfesorHelbert Spencer
import processing.pdf.*;

void setup() {
  size(400, 400, PDF, "Teselación.pdf");
  smooth();
  background (255);
  noFill (); 
  strokeWeight(2);
  for (int i=0; i<11; i++) { 
    int x=50*i;
    for (int j=0; j<11; j++) {
      int y=50*j;
      pajaro(x,y); //llama al pajaro
    }  
  }
  println("Listo. Ctrl+K para ver el pdf");
  exit();
}
  void pajaro(int moveX, int moveY) {

    beginShape(); //el pajaro esta hecho con beginShape
    vertex(0+moveX,0+moveY); //cada vertice se nombra por separado
    vertex(-30+moveX,-10+moveY); //la cordenada X tiene +moveX y la coordenada Y +move Y. Cuando se llama la funcion del pajaro, estas indican donde se ubica.
    vertex(0+moveX,-40+moveY);
    vertex(0+moveX,-20+moveY);
    vertex(10+moveX,-10+moveY);
    vertex(20+moveX,-10+moveY);
    vertex(50+moveX,-0+moveY);
    vertex(20+moveX,10+moveY);
    vertex(10+moveX,30+moveY);
    vertex(20+moveX,40+moveY);
    vertex(10+moveX,40+moveY);
    vertex(0+moveX,30+moveY);
    vertex(0+moveX,10+moveY);
    vertex(-30+moveX,40+moveY);
    vertex(-40+moveX,30+moveY);
    vertex(-30+moveX,10+moveY);
    vertex(0+moveX,0+moveY);
    endShape();
  }