Tomas Gesell curva

De Casiopea
Revisión del 09:31 12 abr 2012 de Hspencer (discusión | contribs.)
(difs.) ← Revisión anterior | Revisión actual (difs.) | Revisión siguiente → (difs.)


TítuloTomas Gesell parabola
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 3, imagen escrita 2012
AsignaturaTaller Inicial Común 1ª y 2ª Etapa,
Del CursoImagen Escrita 2012,
Alumno(s)Tomás Gesell
ProfesorHerbert Spencer


float y, n; 
float m;

void setup() {

  size (1000, 1000);
}

void draw(float tam, float x, float y) {

  stroke(#6A0888); 
  line(x+y, x, y, x-y);
}

void draw() { 
  background(#2EFE2E); 
  for (int x = 100; x < width; x= x+1) { 
    n = norm(x, width, 0); 
    m = map(mouseX, 0, width, 0, 20); 
    y = pow(n, m) * height; 
    stroke (0); 
    draw (x, y, 200);
  }

  println (m);
}