Futura

MariusLudwig

eine weitere übung. mit einbindung des themas Paul Renner, seines zeichens schöpfer der Futura

PFont myFont;
String myString = "futura";

void setup (){
size (1024,768);
smooth();
frameRate (30);
background(255);
noCursor();

strokeWeight(2);
stroke(0);
myFont = createFont("Futura-CondensedExtraBold-48",150,true);
textFont(myFont);
textAlign(CENTER);

}

void draw(){

stroke(255);
if(mousePressed){
fill(150,50);
//rect(0,0,width,height);

stroke (100);
fill(255,5);
rect(mouseX,mouseY,mouseX+65,mouseY+50);

fill(0,50);
//float w = textWidth(myString);
text(myString, mouseX+200, mouseY+180);
}
}