class GSF::Animation
- GSF::Animation
- Reference
- Object
Defined in:
gsf/animation.crConstructors
Instance Method Summary
- #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})
- #done?
- #draw(window, x, y, flip_horizontal = false, flip_vertical = false, color : SF::Color | Nil = nil, rotation = 0)
- #frame : Int32
- #frame_done?
- #global_bounds
- #loops? : Bool
- #next_frame_info : Tuple(Int32, Int32)
- #pause
- #paused? : Bool
- #play
- #restart
- #update(frame_time : Float32)
Constructor Detail
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})
#
def draw(window, x, y, flip_horizontal = false, flip_vertical = false, color : SF::Color | Nil = nil, rotation = 0)
#