Struct asefile::Cel [−][src]
pub struct Cel<'a> { /* fields omitted */ }
Expand description
A reference to a single Cel. A cel contains the image data at a specific layer and frame. In the timeline view these are the dots.
You can get a cel
by going either via frame then layer or vice versa.
Implementations
This cel as an image. Result has the same dimensions as the AsepriteFile. If the cel is empty, all image pixels will be transparent.
Top-left corner of the non-empty rectangular area of the cel.
In other words, the first component is the smallest x coordinate of a non-empty pixel. And the second is the same for y.
These may be negative or outside of the visible area. This can happen if you drag a layer around.
Does this cel include a tilemap.