struct Tsh::Sprite
- Tsh::Sprite
- Struct
- Value
- Object
Overview
A collection of indices to Tsh::Color with a width and a height
Defined in:
plaything.crConstructors
Instance Method Summary
-
#[](x : Int, y : Int) : UInt32
Gets a coordinate pixel in the sprite
-
#data : Array(Array(UInt32))
The pixel data of the sprite.
-
#data=(data : Array(Array(UInt32)))
The pixel data of the sprite.
-
#height : Int32
The height of the sprite
-
#width : Int32
The size of the widest line in the sprite
Constructor Detail
Instance Method Detail
def data : Array(Array(UInt32))
#
The pixel data of the sprite.
Each number is in index to Tsh.colors
def data=(data : Array(Array(UInt32)))
#
The pixel data of the sprite.
Each number is in index to Tsh.colors