class Works::FPSDisplay

Defined in:

works/fps_display.cr

Constant Summary

BarHeight = 3 * Screen.scale_factor
DarkShadow = LibAllegro.premul_rgba_f(0, 0, 0, 0.3)
Green = LibAllegro.premul_rgba_f(0, 1, 0, 0.3)
Margin = 3 * Screen.scale_factor
TextHeight = 10 * Screen.scale_factor
TimeSpan = 1
Width = 100 * Screen.scale_factor

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def calc #

[View source]
def draw #

[View source]