Class: TextureCrop

TextureCrop()

Class for texture crop properties

Constructor

new TextureCrop()

Creates an instance of TextureCrop.
Properties:
Name Type Description
updated boolean
cache Array.<number>
update function
Source:

Classes

TextureCrop

Members

height :number

Set/Get height
Type:
  • number
Source:

width :number

Set/Get width
Type:
  • number
Source:

x :number

Set/Get x
Type:
  • number
Source:

y :number

Set/Get y
Type:
  • number
Source:

Methods

setRect(rect)

Set all values with a rectangle
Parameters:
Name Type Description
rect Rectangle
Source: