Juan Hernández experimento pizarra processing

De Casiopea
Juan Hernández experimento pizarra


TítuloJuan Hernández experimento pizarra
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4, Tarea 4, experimento, experimentos, tarea 4
AsignaturaImagen Escrita 2012,
Del CursoImagen Escrita 2012,
CarrerasArquitectura
Alumno(s)Juan Alejandro Hernández
ProfesorHerbert Spencer

// juan hernandez

int width=10; int height=10; int color_v=11;

void setup() {

 size(screen.width, screen.height);
 background(0);
 smooth();
 
 

}

void draw(){ }


void mouseDragged() {

 noStroke();
 fill(8+color_v*0.5, 32+color_v, 65+color_v);
 ellipse(mouseX, mouseY, width, height);

}


void keyPressed() {

 if (key == 'q') {
   color_v=244;
 } // con tecla "q" cambia tonalidad de azul

 if (key == 'w') {
   color_v= 77;
 } // con tecla "w" cambia otra tonalidad de azul 


 if (key == 'e') {
   color_v=700;
 } //cambia otra tonalidad de azul con "e" 

  
 if (key == 'm') {
   background(0, 0, 0);
 } // la tecla "m" borra el dibujo volviendo al fondo negro inicial 

 if (key == 't') {
   width=30; 
   height=30 ;
 } // tecla "t" aumenta el grosor de linea


 if (key == 'y') {
   width=5; 
   height=5 ;
 } // disminuye la linea

 if (key == 'u') {
   width=10; 
   height=10 ;
 }

} //disminuye el grosor de linea