http://www.jornada.unam.mx/2010/02/04/index.php?section=estados&article=029n2est
float o,t =150;
int num = 4096;
PVector[] pos = new PVector[num];
PVector[] vel = new PVector[num];
PVector[] acc = new PVector[num];
void setup(){
size(600, 600, P3D);
background(150,203,216);
fill(255,50);
smooth();
stroke(100, 255);
for(int i = 0; i < num; i++) {
pos[i] = new PVector(random(0, 700), random(0, 700));
vel[i] = new PVector(0, 0);
acc[i] = new PVector(0, 0);
}
noiseDetail(14);
}
float R1 = random(0, 255);
float R2 = random(0, 255);
float G1 = random(0, 255);
float G2 = random(0, 255);
float B1 = random(0, 255);
float B2 = random(0, 255);
float noisy = .007;
void draw() {
for (int i = 0; i < num; i++) {
stroke (R1, G1, B1, 10);
point(pos[i].x, pos[i].y);
vel[i].x = 10 * noise(200+pos[i].x * .007, 200+pos[i].y*.007, noisy*2)*cos(4*PI*noise(pos[i].x*.007, pos[i].y*.007, noisy*.5));
vel[i].y = 10 * noise(200+pos[i].x * .007, 200+pos[i].y*.007, noisy*2)*sin(4*PI*noise(pos[i].x*.007, pos[i].y*.007, noisy*.5));
pos[i].add(vel[i]);
if(pos[i].x < 0 || pos[i].y < 0 || pos[i].x > 700 || pos[i].y > 700){
pos[i].x = random(0, 700);
pos[i].y = random(0, 700);
vel[i].x = 0;
vel[i].y = 0;
}
acc[i].x = 0;
acc[i].y = 0;
}
noisy += .007;
PImage a;
a = loadImage ("PezLeon.jpg");
image (a,300,300,200,200);
rotateX (o += 350);
rotateY (o += 350);
for (float j = 0; j < 1000; j += 10){
image (a,600,600,50,50);
rotateX(j );
rotateY(j * 1000);
}
}
void mousePressed(){
R1 = random(0, 255);
R2 = random(0, 255);
G1 = random(0, 255);
G2 = random(0, 255);
B1 = random(0, 255);
B2 = random(0, 255);
}
float o,t =150;
int num = 4096;
PVector[] pos = new PVector[num];
PVector[] vel = new PVector[num];
PVector[] acc = new PVector[num];
void setup(){
size(600, 600, P3D);
background(150,203,216);
fill(255,50);
smooth();
stroke(100, 255);
for(int i = 0; i < num; i++) {
pos[i] = new PVector(random(0, 700), random(0, 700));
vel[i] = new PVector(0, 0);
acc[i] = new PVector(0, 0);
}
noiseDetail(14);
}
float R1 = random(0, 255);
float R2 = random(0, 255);
float G1 = random(0, 255);
float G2 = random(0, 255);
float B1 = random(0, 255);
float B2 = random(0, 255);
float noisy = .007;
void draw() {
for (int i = 0; i < num; i++) {
stroke (R1, G1, B1, 10);
point(pos[i].x, pos[i].y);
vel[i].x = 10 * noise(200+pos[i].x * .007, 200+pos[i].y*.007, noisy*2)*cos(4*PI*noise(pos[i].x*.007, pos[i].y*.007, noisy*.5));
vel[i].y = 10 * noise(200+pos[i].x * .007, 200+pos[i].y*.007, noisy*2)*sin(4*PI*noise(pos[i].x*.007, pos[i].y*.007, noisy*.5));
pos[i].add(vel[i]);
if(pos[i].x < 0 || pos[i].y < 0 || pos[i].x > 700 || pos[i].y > 700){
pos[i].x = random(0, 700);
pos[i].y = random(0, 700);
vel[i].x = 0;
vel[i].y = 0;
}
acc[i].x = 0;
acc[i].y = 0;
}
noisy += .007;
PImage a;
a = loadImage ("PezLeon.jpg");
image (a,300,300,200,200);
rotateX (o += 350);
rotateY (o += 350);
for (float j = 0; j < 1000; j += 10){
image (a,600,600,50,50);
rotateX(j );
rotateY(j * 1000);
}
}
void mousePressed(){
R1 = random(0, 255);
R2 = random(0, 255);
G1 = random(0, 255);
G2 = random(0, 255);
B1 = random(0, 255);
B2 = random(0, 255);
}
NET-ART
AMENAZA EL PEZ LEON ARRECIFES DE CORAL EN EL CARIBE MEXICANO...
usar el mouse para cambiar el color....