Javier Zambra: Círculo Interactivo
De Casiopea
(Redirigido desde «Javier Zambra: Círculo Interactivas»)
Título | Javier Zambra: Círculo Interactivo |
---|---|
Asignatura | Imagen Escrita |
Del Curso | Imagen Escrita 2017 |
Carreras | Diseño, 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. |
Nº | 2 |
Alumno(s) | Javier Zambra |
<processingjs> void setup(){
size(500,500);
}
void draw(){
background(0);
int radio = 230 - mouseX; int radio2 =120 + mouseX; for(float i =0; i < 360; i+= 2) { stroke(i, 127); float angulo = radians(i); float punto1 = 250 + radio*cos(angulo); float punto2 = 250 + radio*sin(angulo); float punto3 = 250 + 150*cos(angulo); float punto4 = 250 + 150*sin(angulo);
line(punto1,punto2,punto3,punto4);
float punto5 = 250 + radio2*cos(angulo); float punto6 = 250 + radio2*sin(angulo); float punto7 = 250 + 50*cos(angulo); float punto8 = 250 + 50*sin(angulo);
line(punto5,punto6,punto7,punto8);
}} </processingjs>