by mugehalici

int[][] sayi = new int [5][5];
PFont my_font;

void setup()
{
size (600, 600);
background(250);

my_font = loadFont("ACaslonPro-Bold-48.vlw");

for (int j=0; j<5; j++)
{
for (int i=0; i<5; i++)
{
sayi [i][j] = 0;
}
}
}

void draw()
{
fill(0);
textFont(my_font, 30);
for (int j=0; j<5; j++)
{
for (int i=0; i<5; i++)
{
text (sayi [i][j], 50+i*100, 50+i*100);
}
}
}

Ekran Alıntısı

Advertisements