Class Index | File Index

Classes


Class image

image
Defined in: image.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
image()
Class for abstracting visual data blocks.
Field Summary
Field Attributes Field Name and Description
 
Number of frames that belong to the image.
Method Summary
Method Attributes Method Name and Description
 
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

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 03 2019 18:30:56 GMT-0500 (EST)