class PF::FrameTimer

Overview

Manage the timing of frames in an animation

Defined in:

frame_timer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(fps : Float64, frame_count : Int32, frame : Int32 = 0) #

[View source]

Instance Method Detail

def frame : Int32 #

[View source]
def update(dt : Float64) #

Update the timing given a delta time dt


[View source]