Fork me on GitHub
View source

package haxepunk.screen

class UniformScaleMode


extends ScaleMode

ScaleMode that ensures scaleX = scaleY.


Available since:

2.6.0

Constructor

View source

new (type : UniformScaleType = Expand, integer : Bool = false) : Void


Parameters:
integer   

Whether scale should be rounded to an integer.

null   

mode

Functions

View source

resize (stageWidth : Int, stageHeight : Int) : Void