add demos to README.md
This commit is contained in:
@@ -63,6 +63,7 @@ fun main() = application {
|
||||
# Camera2D demo
|
||||
|
||||
click and drag the mouse for panning, use the mouse wheel for zooming
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoCamera2D01.kt)
|
||||
@@ -72,6 +73,7 @@ click and drag the mouse for panning, use the mouse wheel for zooming
|
||||
# Camera2D demo with static elements
|
||||
|
||||
An approach for having certain elements not affected by the camera
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoCamera2D02.kt)
|
||||
@@ -87,6 +89,7 @@ drawing operations while maintaining individual camera states, ensuring proper t
|
||||
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.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoCamera2DManual01.kt)
|
||||
@@ -102,6 +105,7 @@ the new active contour.
|
||||
|
||||
As the mouse is dragged or its wheel scrolled, the camera is updated, affecting
|
||||
how the active contour is rendered.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoCamera2DManual02.kt)
|
||||
@@ -109,6 +113,7 @@ how the active contour is rendered.
|
||||
### DemoOrbitalCamera01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoOrbitalCamera01.kt)
|
||||
@@ -124,6 +129,7 @@ Functionality:
|
||||
- Spawns an orbital camera, initially positioned away from the origin, to allow for focused rendering.
|
||||
- Renders 3D wireframe shapes (sphere and cube) using the camera's isolated perspective.
|
||||
- Draws a static 2D pink circle overlay at the window center.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoOrbitalManual01.kt)
|
||||
@@ -131,6 +137,7 @@ Functionality:
|
||||
### DemoParametricOrbital01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoParametricOrbital01.kt)
|
||||
|
||||
Reference in New Issue
Block a user