Pincel aleatorio de valores

De Casiopea


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));
  }
}
}