Created
February 5, 2010 05:56
-
-
Save kritzikratzi/295549 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.opengl.*; | |
import fullscreen.*; | |
SoftFullScreen fs; | |
PFont font; | |
boolean reloadFont = false; | |
void setup(){ | |
size( screen.width, screen.height, OPENGL ); | |
frameRate(2000); | |
fs = new SoftFullScreen( this ); | |
font = loadFont( "Serif-48.vlw" ); | |
fs.enter(); | |
} | |
void displayChanged(){ | |
reloadFont = true; | |
} | |
void draw(){ | |
background(0); | |
if( reloadFont ){ | |
font = loadFont( "Serif-48.vlw" ); | |
reloadFont = false; | |
} | |
fill( 255 ); | |
textFont( font ); | |
text( frameRate + "fps", 100, 100 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment