Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.535 kb
class Hud {
int boxHeight = 155;
String hudText = new String("Dome Scheiße");
void setHudText(String newText) {
hudText = newText;
}
void draw() {
pCamera.beginHUD();
noLights();
strokeWeight(0);
fill(255,255,255,200);
rect(10,10,width-20,30);
textFont(font);
fill(0,0,0);
textAlign(CENTER);
text(hudText, width/2-20, 32);
fill(255,255,255,100);
rectMode(CORNER);
rect(10, height-boxHeight-10, 45,boxHeight);
pCamera.endHUD();
}
}
Jump to Line
Something went wrong with that request. Please try again.