class Works::Sprite

Defined in:

works/sprite.cr

Constant Summary

NoTintColor = LibAllegro.map_rgb_f(1, 1, 1)

Class Method Summary

Class Method Detail

def self.draw(sprite : LibAllegro::Bitmap, x, y, scale = 1.0, center = false, flip_horizontal = false, flip_vertical = false) #

[View source]
def self.draw_rotated(sprite : LibAllegro::Bitmap, x, y, scale = 1.0, angle = 0.0, center = false, flip_horizontal = false, flip_vertical = false) #

[View source]
def self.draw_tinted(sprite : LibAllegro::Bitmap, x, y, tint = NoTintColor, scale = 1.0, center = false, flip_horizontal = false, flip_vertical = false) #

[View source]