Circulo de lado a lado
De Casiopea
Título | Circulos de lado a lado Andres Ardaya |
---|---|
Asignatura | Imagen Escrita 2017 |
Del Curso | Imagen Escrita 2017 |
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. |
Nº | 4 |
Alumno(s) | Andres Ardaya |
<processingjs>
int X; int sentido;
void setup() { size(400,400); smooth(); fill(255); X= width/2; sentido = 1; noStroke(); ellipseMode(RADIUS); }
void draw() {
background(510600);
ellipse(X, height/2, 20,20); ellipse(X, height/6, 20,20); ellipse(X, height/1.2, 20,20); if((X> width-20) || (X<20)) { sentido= -sentido; }
X += 3 * sentido;
}
</processingjs>
int X; int sentido; void setup() { size(400,400); smooth(); fill(255); X= width/2; sentido = 1; noStroke(); ellipseMode(RADIUS); } void draw() { background(510600); ellipse(X, height/2, 20,20); ellipse(X, height/6, 20,20); ellipse(X, height/1.2, 20,20); if((X> width-20) || (X<20)) { sentido= -sentido; } X += 3 * sentido; }