Class image
image
Defined in: image.js.
Constructor Attributes | Constructor Name and Description |
---|---|
image()
Class for abstracting visual data blocks.
|
Field Attributes | Field Name and Description |
---|---|
Number of frames that belong to the image.
|
Method Attributes | Method Name and Description |
---|---|
getFrame(i)
Gets the frame requested.
|
Class Detail
image()
Class for abstracting visual data blocks.
An Image is a list of frames, where each frame is
2-dimensional matrix of 4-component RGBA colors. Every layer (or frame)
of an image has the same dimensions. A typical uses of multiple layers of an image
are tilesets and animations. In most cases, the pixel data for the image
is stored on the GPU. Images are essentially containers for their frames.
Field Detail
frameCount
Number of frames that belong to the image.
Method Detail
{frame}
getFrame(i)
Gets the frame requested.
- Parameters:
- {Number} i
- The i'th frame requested
- Returns:
- {frame} The frame requested