Tomas Gesell curva
De Casiopea
Título | Tomas Gesell parabola |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3, imagen escrita 2012 |
Asignatura | Taller Inicial Común 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita 2012, |
Alumno(s) | Tomás Gesell |
Profesor | Herbert 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); }