The Texture this Frame is a part of.
The name of this Frame. The name is unique within the Texture.
The index of the TextureSource that this Frame is a part of.
The x coordinate of the top-left of this Frame.
The y coordinate of the top-left of this Frame.
The width of this Frame.
The height of this Frame.
Over-rides the Renderer setting. -1 = use Renderer Setting 0 = No rounding 1 = Round
ReadonlycanvasThe Canvas drawImage data object.
The x center of this frame, floored.
The y center of this frame, floored.
Any Frame specific custom data can be stored here.
Does this Frame have a custom pivot point?
The height of the area in the source image to cut.
The width of the area in the source image to cut.
X position within the source image to cut from.
Y position within the source image to cut from.
ReadonlyglA reference to the Texture Source WebGL Texture that this Frame is using.
Half the height, floored. Precalculated for the renderer.
Half the width, floored. Precalculated for the renderer.
The rendering height of this Frame, taking trim into account.
Readonlyis3If the Frame has scale9 border data, is it 3-slice or 9-slice data?
The name of this Frame. The name is unique within the Texture.
The horizontal pivot point of this Frame.
The vertical pivot point of this Frame.
ReadonlyradiusThe radius of the Frame (derived from sqrt(w * w + h * h) / 2)
ReadonlyrealThe height of the Frame in its un-trimmed, un-padded state, as prepared in the art package, before being packed.
ReadonlyrealThe width of the Frame in its un-trimmed, un-padded state, as prepared in the art package, before being packed.
CURRENTLY UNSUPPORTED
Is this frame is rotated or not in the Texture? Rotation allows you to use rotated frames in texture atlas packing. It has nothing to do with Sprite rotation.
Readonlyscale9Does the Frame have scale9 border data?
The TextureSource this Frame is part of.
The index of the TextureSource in the Texture sources array.
The Texture this Frame is a part of.
ReadonlytrimmedIs the Frame trimmed or not?
WebGL UV u0 value.
WebGL UV u1 value.
WebGL UV v0 value.
WebGL UV v1 value.
The rendering width of this Frame, taking trim into account.
The X rendering offset of this Frame, taking trim into account.
The Y rendering offset of this Frame, taking trim into account.
Clones this Frame into a new Frame object.
Destroys this Frame by nulling its reference to the parent Texture and and data objects.
Takes a crop data object and, based on the rectangular region given, calculates the required UV coordinates in order to crop this Frame for WebGL and Canvas rendering.
The crop size as well as coordinates can not exceed the the size of the frame.
This is called directly by the Game Object Texture Components setCrop method.
Please use that method to crop a Game Object.
The crop data object. This is the GameObject._crop property.
The x coordinate to start the crop from. Cannot be negative or exceed the Frame width.
The y coordinate to start the crop from. Cannot be negative or exceed the Frame height.
The width of the crop rectangle. Cannot exceed the Frame width.
The height of the crop rectangle. Cannot exceed the Frame height.
Does the parent Game Object have flipX set?
Does the parent Game Object have flipY set?
Sets the x and y position within the source image to cut from.
Optionalx: numberX position within the source image to cut from. Default 0.
Optionaly: numberY position within the source image to cut from. Default 0.
Sets the width, and height of the area in the source image to cut.
The width of the area in the source image to cut.
The height of the area in the source image to cut.
Sets the scale9 center rectangle values.
Scale9 is a feature of Texture Packer, allowing you to define a nine-slice scaling grid.
This is set automatically by the JSONArray and JSONHash parsers.
The left coordinate of the center scale9 rectangle.
The top coordinate of the center scale9 rectangle.
The width of the center scale9 rectangle.
The height coordinate of the center scale9 rectangle.
Sets the width, height, x and y of this Frame.
This is called automatically by the constructor and should rarely be changed on-the-fly.
The width of the frame before being trimmed.
The height of the frame before being trimmed.
Optionalx: numberThe x coordinate of the top-left of this Frame. Default 0.
Optionaly: numberThe y coordinate of the top-left of this Frame. Default 0.
If the frame was trimmed when added to the Texture Atlas, this records the trim and source data.
The width of the frame before being trimmed.
The height of the frame before being trimmed.
The destination X position of the trimmed frame for display.
The destination Y position of the trimmed frame for display.
The destination width of the trimmed frame for display.
The destination height of the trimmed frame for display.
Directly sets the canvas and WebGL UV data for this frame.
Use this if you need to override the values that are generated automatically when the Frame is created.
Width of this frame for the Canvas data.
Height of this frame for the Canvas data.
UV u0 value.
UV v0 value.
UV u1 value.
UV v1 value.
Takes a crop data object and recalculates the UVs based on the dimensions inside the crop object.
Called automatically by setFrame.
The crop data object. This is the GameObject._crop property.
Does the parent Game Object have flipX set?
Does the parent Game Object have flipY set?
Updates the internal WebGL UV cache and the drawImage cache.
Updates the internal WebGL UV cache.
A Frame is a section of a Texture.