Christoph Krumbach: Pizarra Arcoiris (R)
De Casiopea
Título | Pizarra Arcoiris (R) |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 4 |
Período | 2012- |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Christoph Krumbach |
float c, d; void setup() { size(screen.width, screen.height); background(255); smooth(); colorMode(HSB); } void draw() { d = dist(mouseX, mouseY, pmouseX, pmouseY); ; c = map(d, 0, 60, 0, 359); stroke(c, 255, 255, 160); if (mousePressed) { line(mouseX, mouseY, pmouseX, pmouseY); } } void keyPressed() { if (key == ' ') { background(255); } if (key == 's') { saveFrame("img/######.jpg"); } if (key == 'q') { strokeWeight(5); } if (key == 'w') { strokeWeight(10); } if (key == 'e') { strokeWeight(20); } if (key == 'r') { strokeWeight(30); } if (key == 't') { strokeWeight(40); } }