7 Ocak 2011 Cuma

Ekranı ortadan renklendirme

void setup()
{
size (400,400);
background(0);
noLoop();
}

void draw()
{
int Xbol = 20 ;
int Ybol = 20 ;

for (int i = 0 ; i {
for (int j = 0 ; j {

fill(abs(round(Xbol/2)-i)*25 + abs(round(Ybol/2)-j)*25);

rect(width/Xbol* i , height/Ybol * j,width/Xbol , height/Ybol);
}
}

}

Hiç yorum yok:

Yorum Gönder