text-rotate

by mugehalici

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

Advertisements