Circulo de lado a lado

De Casiopea



TítuloCirculos de lado a lado Andres Ardaya
AsignaturaImagen Escrita 2017
Del CursoImagen Escrita 2017
CarrerasDiseñ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.
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; 
 
 }