7 Ocak 2011 Cuma

// matris renklendirme..

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

void draw()
{
int Xbol=5;
int Ybol=5;
//ekranı böldük 5e..

for (int i= 0; i {
for(int j=0; j {
fill(250-i*25-j*25);
rect(width/Xbol*i, height/Ybol*j, width/Xbol, height/Ybol);
}
}

}

Hiç yorum yok:

Yorum Gönder