class Bench::Animation

Defined in:

bench/animation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(fps_factor : Int32, loops : Bool = true, center : Bool = true) #

[View source]
def self.new #

[View source]

Instance Method Detail

def add(sheet : LibAllegro::Bitmap, x, y, width, height) #

[View source]
def center=(center : Bool) #

[View source]
def center? : Bool #

[View source]
def destroy #

[View source]
def display_frame #

[View source]
def draw(x, y) #

[View source]
def fps_factor : Int32 #

[View source]
def fps_factor=(fps_factor : Int32) #

[View source]
def frame : Int32 #

[View source]
def frame=(frame : Int32) #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def loops=(loops : Bool) #

[View source]
def loops? : Bool #

[View source]
def sprites : Array(LibAllegro::Bitmap) #

[View source]
def sprites=(sprites : Array(LibAllegro::Bitmap)) #

[View source]
def update #

[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]