/** * Esfera * by David Pena. * * Distribucion aleatoria uniforme sobre la superficie de una esfera. */ import processing.opengl.*; int cuantos = 8000; pelo[] lista ; float[] z = new float[cuantos]; float[] phi = new float[cuantos]; float[] largos = new float[cuantos]; float radio = 200; float rx = 0; float ry =0; void setup() { size(1024, 768, OPENGL); radio = height/3.5; lista = new pelo[cuantos]; for (int i=0; i