Claudio Gómez; tarea 3 (pizarra: curvas unidas)
De Casiopea
Título | tarea 4 pizarra con color. |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 4 |
Asignatura | Taller Inicial Común 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita 2012, |
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) | Claudio Gómez |
Profesor | Herbert Spencer |
float d, grosor;
void setup() {
size(screen.width, screen.height); smooth(); background(0); stroke(255, 100); strokeCap(PROJECT);
}
void draw() {
if (mousePressed) { d = dist(mouseX, mouseY, pmouseX, pmouseY); grosor = map(d, 0, 100, 1, 20); strokeWeight(2); line(mouseX, mouseY, pmouseX, pmouseY); noFill();
bezier(mouseX, mouseY, pmouseX, pmouseY, 56, 90, 15, 80); fill(255); int steps = 10; for (int i = 0; i <= steps; i++) {
float t = i / float(steps); float x = bezierPoint(85, 10, 90, 15, t); float y = bezierPoint(20, 10, 90, 80, t); ellipse(mouseX, mouseY, 9, 5) ; smooth(); noFill();
stroke(102, 102, 0); curve(5, 26, 5,mouseX, 73, 24, 73, 61); stroke(0); stroke(255, 102, 0); curve(73, 24, 73, 61, 15, 65, 15, 65);
};
}
}
void keyPressed() {
if (key == 's') { saveFrame("img/######.jpg");} if (key == ' ') {background(0);}
}