Camera2DManual

fun Program.Camera2DManual(configure: Camera2D.() -> Unit = { }): Camera2D(source)

Creates and sets up a custom-configured Camera2D instance within a Program.

This function initializes a new Camera2D, applies the provided configuration block, and sets it up with the current Program context for interactive 2D transformations such as panning, rotating, and zooming.

Return

the configured Camera2D instance.

Parameters

configure

an optional configuration block where you can set up the Camera2D instance (e.g., setting view or rotation center). The default is an empty block.