of

fun of(width: Number = DEFAULT_WINDOW_WIDTH, height: Number = DEFAULT_WINDOW_HEIGHT): AspectRatio

Creates an aspect ratio out of width and height. May be for example 1920 : 1080 as well as 16 : 9.

Parameters

width

Width of ratio. Default: DEFAULT_WINDOW_WIDTH.

height

Height of ratio. Default: DEFAULT_WINDOW_HEIGHT.