Francisca Manriquez- Mecanismo dibujo
De Casiopea
Título | Mecanismo de Dibujo |
---|---|
Tipo de Proyecto | Proyecto de Taller |
Palabras Clave | tarea 4 |
Período | 2013- |
Del Curso | Imagen Escrita 2013 - DIS, |
Carreras | Diseñ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) | Francisca Manríquez Allendes |
float alt; void setup() { size(500, 500); background(255); stroke(0, 100); strokeWeight(5); smooth(5); } void draw() { alt = dist(mouseX, mouseY, pmouseX, pmouseY); if (mousePressed) { achurado(mouseX, mouseY, alt); } } void achurado(float x, float y, float mag) { translate(x, y); for (int i = 4; i < 8 ; i ++) { ellipse((-mag), (mag),(mag),(-mag)); } } void keyPressed() { String filename = "achuradopruebaFMA"; if (key == 's' || key == 'S') { saveFrame(filename); println("se ha grabado exitosamente el archivo "+filename); } if (key == ' ') { background(255); } }