class GSF::Animation

Defined in:

gsf/animation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(loops : Bool = true) #

[View source]

Instance Method Detail

def add(filename : String, x : Int32 = 0, y : Int32 = 0, width : Int32 = 1, height : Int32 = 1, duration_ms : Int32 = 125, color : SF::Color | Nil = nil, rotation = 0, flip_horizontal = false, flip_vertical = false, smooth = false, repeated = false, scale = {1, 1}) #

[View source]
def done? #

[View source]
def draw(window, x, y, flip_horizontal = false, flip_vertical = false, color : SF::Color | Nil = nil, rotation = 0) #

[View source]
def frame : Int32 #

[View source]
def frame_done? #

[View source]
def global_bounds #

[View source]
def loops? : Bool #

[View source]
def next_frame_info : Tuple(Int32, Int32) #

[View source]
def pause #

[View source]
def paused? : Bool #

[View source]
def play #

[View source]
def restart #

[View source]
def update(frame_time : Float32) #

[View source]