zoom

fun zoom(center: Vector2, factor: Double)(source)

Applies a zoom transformation to the camera view. The transformation is centered around the specified point while adjusting the zoom level by the given factor.

Parameters

center

The point in space around which the zoom transformation is centered.

factor

The zoom factor, where values greater than 1.0 zoom in and values less than 1.0 zoom out.