Class: TextureCrop

TextureCrop()

Class for texture crop properties

Constructor

new TextureCrop()

Creates an instance of TextureCrop.
Source:

Extends

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:

updateCrop()

Update calculated crop values
Source: