I think kobby helped you very good
here is my old code - you asked for it
PFont fontJCfg;
PFont fontGiddyupStd;
//
String [] myWords = {
"hope", "faith", "creative", "helpful", "loved", "thinker", "friend"
};
//
//
void setup() {
// Init
size(656, 414);
println ("starting setup ------------------------------------");
smooth();
// load image for bg
println ("now doing bg");
PImage bg;
bg = loadImage ("butterfly.jpg");
background(bg);
println ("bg check");
//
// the Fonts
// 1st Font
println ("now doing fontJCfg");
fontJCfg = createFont("JCfg-48.vlw", 100);
textFont(fontJCfg, 100);
println ("fontJCfg check");
// print text
fill(175, 65, 200);
text("Hello", width/2-130, height/2);
// 2nd Font
println ("now doing fontGiddyupStd");
PFont fontGiddyupStd;
fontGiddyupStd = createFont ("GiddyupStd-30.vlw", 20);
textFont(fontGiddyupStd, 20);
println ("fontGiddyupStd check");
//
println ("end of setup --------------------------------------------------");
//
}
//
void draw() {
fill(random(255), random(255), random(255));
// ellipse ( width/2-40, height/2-30, 280, 100);
// ellipse ( width/2-40, height/2-30, 280, 280);
// rect ( width/2-140, height/2-80, 280, 90);
// random with border for screen
float x = random(2, width-40);
float y = random(15, height-5);
//
pushMatrix();
translate(x, y);
rotate(radians ( random(0, 359)));
// when it is not within the rect
if (! (x > width/2-190 && x < width/2-140 + 280 &&
y > height/2-120 && y < height/2-80 + 140 )) {
// paint word
text( myWords [int (random(5))], 0, 0);
}
popMatrix();
//
// stop when key
if (keyPressed) {
noLoop();
}
//
}
// ----------------------------------------------------