add demos to README.md

This commit is contained in:
Abe Pazos
2025-08-27 19:48:23 +00:00
parent b231b415f1
commit 64493302c7
35 changed files with 283 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ To create independent views inside one program window.
Demonstrates how to use a proxy program inside a [viewBox],
how the main program can access its variables and methods,
and execute its `extend` block by calling its `draw()` method.
![DemoProxyProgram01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-view-box/images/DemoProxyProgram01Kt.png)
[source code](src/jvmDemo/kotlin/DemoProxyProgram01.kt)
@@ -26,6 +27,7 @@ position.
Note that programA keeps listening to the key events
even if programB is currently displayed.
![DemoProxyProgram02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-view-box/images/DemoProxyProgram02Kt.png)
[source code](src/jvmDemo/kotlin/DemoProxyProgram02.kt)
@@ -41,6 +43,7 @@ repeatedly, in a grid of 4 columns and 4 rows.
The camera's initial rotation and scaling are specified as a transformation matrix.
To control the camera use the mouse wheel and buttons on the top-left view.
![DemoUpdate01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-view-box/images/DemoUpdate01Kt.png)
[source code](src/jvmDemo/kotlin/DemoUpdate01.kt)
@@ -54,6 +57,7 @@ All three can be controlled with the mouse wheel and buttons.
The `shouldDraw` viewBox variable is used to avoid re-rendering the view
unnecessarily when the camera has not changed.
![DemoViewBox01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-view-box/images/DemoViewBox01Kt.png)
[source code](src/jvmDemo/kotlin/DemoViewBox01.kt)