Ramón Pizarro Briceño: Curvas

De Casiopea
Función gráfica


TítuloFunción gráfica
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 3, imagen escrita 2012
AsignaturaTaller Inicial Común 1ª y 2ª Etapa, Imagen Escrita 2012,
Del CursoImagen Escrita 2012,
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)Ramon Pizarro
ProfesorHerbert Spencer

float y, n; float m; 

void setup() {
  size (1000,1000);
}

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

stroke(#FF0000);
line(x+y, x, y, x-y);

}

void draw() {
background(0);
for (int x = 1; x < width; x= x+1) {
n = norm(x, width, 0);
m = map(mouseX, 0, width, 0, 50);
y = pow(n, m) * height;
stroke (0); draw (x, y, 40);
}

println (m);
}