miércoles, 26 de febrero de 2014

Processing






int t;
void draw()
{for(int y=0;y<100;y++)
for(int x=0;x<100;x++)
{stroke((x*y*(t%1280)*0.01)%64*4);
point(x,y);
}t++;
}

size (500,350);
background             (24,120,60);
smooth ();
fill (180);
rectMode (CENTER);
rect (100,100,90,90);
fill (120,24,38);
ellipse (300,220,90,90);

void setup()           // solo se ejecuta una vez
{                                  // configuración del sketch
size(400,320);
background (255);

// 2da parte
void draw () {
strokeWeight (2);
smooth ();
fill ( 140);
recMode (CENTER);
rect (mouseX, mouseY, 50,50);
fill (200,35,100);
ellipse(mouseY,mouseX, 50,50);

No hay comentarios:

Publicar un comentario