Pincel aleatorio de valores

De Casiopea
Revisión del 20:59 24 may 2013 de Aucan (discusión | contribs.) (Página creada con «{{Proyecto |Título=Random valor Brush |Palabras Clave=Tarea 4 |Año de Inicio=2013 |Año de Término=2013 |Carreras Relacionadas=Diseño Gráfico, Diseño Industrial |Asig...»)
(difs.) ← Revisión anterior | Revisión actual (difs.) | Revisión siguiente → (difs.)


TítuloRandom valor Brush
Palabras ClaveTarea 4
Período2013-2013
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - DIS,
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., 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)Luciano Aucan Lagomarsino
ProfesorHerbert Spencer


int counter;

void setup() {
  size(500, 500);
  background(255);
  colorMode(RGB);  
   frameRate(20);
}

void draw() {
  if (mousePressed == true) {
    fill(0,random(100));
  noStroke();
  fill(random(255));
  
  if(mousePressed == true) { //add some interaction
    ellipse(mouseX, mouseY, 10, 10);
  }
  else {
    ellipse(width/2, height/2, 80*sin(counter), 80*sin(counter));
  }
}
}