Frame#setTrim()

setTrim(trimmed, actualWidth, actualHeight, destX, destY, destWidth, destHeight) If the frame was trimmed when added to the Texture Atlas this records the trim and source data. Parameters Name Type Description trimmed boolean If this frame was trimmed or not. actualWidth number The width of the frame before being trimmed. actualHeight number The height of the frame before being trimmed. destX number The destination X position of the trimmed frame for display. destY number The desti

Frame#rotationDirection

rotationDirection : string Either 'cw' or 'ccw', rotation is always 90 degrees. Default Value 'cw' Source code: animation/Frame.js (Line 76)

Frame#rotated

rotated : boolean Rotated? (not yet implemented) Source code: animation/Frame.js (Line 70)

Frame#right

right : number The right of the Frame (x + width). Source code: animation/Frame.js (Line 121)

Frame#resize()

resize(width, height) Adjusts of all the Frame properties based on the given width and height values. Parameters Name Type Description width integer The new width of the Frame. height integer The new height of the Frame. Source code: animation/Frame.js (Line 132)

Frame#name

name : string Useful for Texture Atlas files (is set to the filename value). Source code: animation/Frame.js (Line 49)

Frame#index

index : number The index of this Frame within the FrameData set it is being added to. Source code: animation/Frame.js (Line 24)

Frame#height

height : number Height of the frame. Source code: animation/Frame.js (Line 44)

Frame#getRect()

getRect(out) → {Phaser.Rectangle} Returns a Rectangle set to the dimensions of this Frame. Parameters Name Type Argument Description out Phaser.Rectangle <optional> A rectangle to copy the frame dimensions to. Returns Phaser.Rectangle - A rectangle. Source code: animation/Frame.js (Line 206)

Frame#Frame

new Frame(index, x, y, width, height, name) A Frame is a single frame of an animation and is part of a FrameData collection. Parameters Name Type Description index number The index of this Frame within the FrameData set it is being added to. x number X position of the frame within the texture image. y number Y position of the frame within the texture image. width number Width of the frame within the texture image. height number Height of the frame within the texture image. name st