Akihabara/akihabara — pull request #5 by EtnasSoft (2012-01-01 22:40:07+00:00)
Title: New Debug Object and FPS Counter

For the moment, it only has one method: a FPS Counter.

Syntax:
debug.fpsCounterInit( [settings] );

Where settings are:
x [optional. Default : 0] The x position of the label on pixels
y [optional. Default : 0] The y position of the label on pixels
font [optional. Default: 'lighter 10px sans-serif' ] The font for the label (CSS format)
color [optional. Default: black] The color of the font fot the label (CSS format)

Sample:
gbox.onLoad(function () {
debug.fpsCounterInit({
x : 10,
y : 15,
font : 'bold 10px sans-serif',
color : 'white'
});
}, false);