class Works::Sprite
- Works::Sprite
- Reference
- Object
Defined in:
works/sprite.crConstant Summary
-
NoTintColor =
LibAllegro.map_rgb_f(1, 1, 1)
Class Method Summary
- .draw(sprite : LibAllegro::Bitmap, x, y, scale = 1.0, center = false, flip_horizontal = false, flip_vertical = false)
- .draw_rotated(sprite : LibAllegro::Bitmap, x, y, scale = 1.0, angle = 0.0, center = false, flip_horizontal = false, flip_vertical = false)
- .draw_tinted(sprite : LibAllegro::Bitmap, x, y, tint = NoTintColor, scale = 1.0, center = false, flip_horizontal = false, flip_vertical = false)
Class Method Detail
def self.draw(sprite : LibAllegro::Bitmap, x, y, scale = 1.0, center = false, flip_horizontal = false, flip_vertical = false)
#
def self.draw_rotated(sprite : LibAllegro::Bitmap, x, y, scale = 1.0, angle = 0.0, center = false, flip_horizontal = false, flip_vertical = false)
#
def self.draw_tinted(sprite : LibAllegro::Bitmap, x, y, tint = NoTintColor, scale = 1.0, center = false, flip_horizontal = false, flip_vertical = false)
#