Skip to content

Home › Overview › ink

aspect_fit ​

Returns the largest rect with the given aspect ratio (width over height) that fits inside the specified container.

Functions ​

aspect_fit ​

luau
aspect_fit(container: Rect, aspect: number, align_x: number?, align_y: number?): Rect