Diferencia entre revisiones de «Paul Guitard: Mini-Paint»

De Casiopea
(Página creada con '{{Proyecto |Título=Proyecto Mini Paint |Tipo de Proyecto=Proyecto de Curso |Palabras Clave=tarea 4 |Año de Inicio=2012 |Carreras Relacionadas=Diseño Gráfico, Diseño Industr...')
 
Sin resumen de edición
Línea 5: Línea 5:
|Año de Inicio=2012
|Año de Inicio=2012
|Carreras Relacionadas=Diseño Gráfico, Diseño Industrial
|Carreras Relacionadas=Diseño Gráfico, Diseño Industrial
|Asignaturas Relacionadas=Taller Inicial Común 1ª y 2ª Etapa,  
|Asignaturas Relacionadas=Taller Inicial Común 1ª y 2ª Etapa,
|Cursos Relacionados=Imagen Escrita 2012,  
|Cursos Relacionados=Imagen Escrita 2012,
|Profesor=Herbert Spencer,  
|Profesor=Herbert Spencer,
|Alumnos=Paul Guitard,  
|Alumnos=Paul Guitard,
}}
}}
<pre<
<pre>


int a = 1; // Define el valor inicial del grosor de linea
int a = 1; // Define el valor inicial del grosor de linea
Línea 90: Línea 90:
   }
   }
}
}
</pre>
</pre>

Revisión del 09:59 19 abr 2012


TítuloProyecto Mini Paint
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
Período2012-
AsignaturaTaller Inicial Común 1ª y 2ª Etapa,
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)Paul Guitard
ProfesorHerbert Spencer

int a = 1; // Define el valor inicial del grosor de linea

void setup() {
  size(700, 700);
  background(255);
  strokeCap(ROUND); // redondea bordes de lapiz
  smooth(); // Suavizado anti-aliasing
  stroke(a);
  strokeWeight(2);
}

void draw() {
  if (mousePressed) {
    if (mouseButton == LEFT) { // Dibujar
      line(mouseX, mouseY, pmouseX, pmouseY);
    }
  }
  if (mousePressed) {
    if (mouseButton == RIGHT) { //Borrador
      line(mouseX, mouseY, pmouseX, pmouseY);
      stroke(255);
      strokeWeight (25);
    }
  }
  if (keyPressed) {
    if (key == '1') {
      strokeWeight(a++); // Aumenta grosor de lapiz
    }
  }

  if (keyPressed) {
    if (key == '2') {
      strokeWeight(a--); // reduce grosor de lapiz
    }
  }

  if (keyPressed) {
    if (key == 'a') {
      stroke(#0000FF); // cambia el color a azul
    }
  }

  if (keyPressed) {
    if (key == 'r') {
      stroke(#FF0000); // cambia el color a rojo
    }
  }

  if (keyPressed) {
    if (key == 'v') {
      stroke(#008000); // Cambia el color a verde
    }
  }

  if (keyPressed) {
    if (key == 'p') {
      stroke(#800080); // Cambia el color a purpura
    }
  }

  if (keyPressed) {
    if (key == 'n') {
      stroke(#FFA500); // Cambia el color a naranjo
    }
  }

  if (keyPressed) {
    if (key == 'm') {
      stroke(#FFFF00); // Cambia el color a amarillo
    }
  }

  if (keyPressed) {
    if (key == 'm') {
      stroke(#FFFF00); // Cambia el color a amarillo
    }
  }
}