[orx-camera] Improve demo descriptions, add demo
This commit is contained in:
@@ -3,15 +3,12 @@ import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.extra.camera.Camera2DManual
|
||||
|
||||
/**
|
||||
* Demonstrate the use of `Camera2DManual` for manual camera control.
|
||||
* Demonstrates how to use `Camera2DManual` to have
|
||||
* some elements affected by an interactive 2D camera combined with
|
||||
* other elements not affected by it.
|
||||
*
|
||||
* The application is configured with a 720x720 window size. Within the program, a custom camera (`Camera2DManual`)
|
||||
* is initialized and used to create isolated drawing scopes. The `isolated` method is used to overlay different
|
||||
* drawing operations while maintaining individual camera states, ensuring proper transformations for specific elements.
|
||||
*
|
||||
* Three circles are drawn on the canvas: a small pink one, a medium white one and a large pink one.
|
||||
* Only the pink ones are affected by the interactive `Camera2DManual`, while the middle white circle is outside
|
||||
* the camera's isolated scope.
|
||||
* In this example both PINK circles can be dragged, scaled and rotated
|
||||
* while the white circle in the middle is static.
|
||||
*/
|
||||
fun main() = application {
|
||||
configure {
|
||||
|
||||
Reference in New Issue
Block a user