mugehalici

This WordPress.com site is the bee's knees

Category: Uncategorized

nurbsdemo_JanForetnik

Ekran Alıntısıhttp://geometrie.foretnik.net/files/NURBS-en.swf

text-rotate

PFont mf;

void setup()
{
size(600, 600);
background(255);
mf = loadFont("ACaslonPro-Bold-48.vlw");
textFont(mf, 72);
}
void draw()
{
fill(0, 50);
rect(0, 0, width, height);
fill(255, 50);
pushMatrix();
translate(width/2, height/2);
rotate(radians(mouseX));
text("deneme", 0, 0);
textFont(mf, mouseY/2);
popMatrix();
}

Adsız

diziler_2

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

PFont myFont;
void setup()
{
size(600, 600);
background(250);
myFont = loadFont("ACaslonPro-Bold-48.vlw" );
}
void draw()
{
for (int j= 0; j<5; j++)
{
for (int i=0; i<5; i++)
{
sayi[i][i]=0;
}
}

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

fill(0);
textFont(myFont, 30);

for (int j= 0; j<5; j++)
{
for (int i=0; i<5; i++)
{
text(sayi[i][i], 50+i*100, 50+j*100);
}
}
}

Ekran Alıntısı

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ı