class

GSF::Animation

Inherits Reference < Object

Constructors

new(loops : Bool = true)
Source

Instance methods

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})
Source
done?
Source
draw(window, x, y, flip_horizontal = false, flip_vertical = false, color : SF::Color | Nil = nil, rotation = 0)
Source
frame
Source
frame_done?
Source
global_bounds
Source
loops?
Source
next_frame_info
Source
pause
Source
paused?
Source
play
Source
restart
Source
update(frame_time : Float32)
Source