Noise & random

De Casiopea
Noise y random


TítuloNoise y random
Tipo de ProyectoProyecto de Curso
Palabras Claverandom, noise, processing
Período2011-2011
AsignaturaImagen Escrita,
Del CursoImagen Escrita,
CarrerasArquitectura
Alumno(s)Trajan Pirkovic
ProfesorHerbert Spencer
void setup() {
  size(200, 300);
  smooth();
  noStroke();
}

float xoff = 0.0;
void draw() {
  background(204);
  xoff = xoff + .05;
  float n = noise(xoff) * width;
  ellipse(100, 150, n, n);
  ellipse(0, 0, n, n);
  ellipse(200, 0, n, n);
  ellipse(0, 300, n, n);
  ellipse(200, 300, n, n);
  line(100, 150, n, n);
  fill(random(0, 256), random(0, 256), random(0, 256)); 
  stroke(15, 15, 28);
}

void guardar() {
  saveFrame("noise&random.png");
}