[orx-shapes] Add demo descriptions

This commit is contained in:
Abe Pazos
2025-10-29 09:52:31 +01:00
parent c3bb7d415f
commit 8990a6cf64
11 changed files with 99 additions and 0 deletions

View File

@@ -6,6 +6,16 @@ import org.openrndr.extra.shapes.primitives.Net
import org.openrndr.shape.Circle
import kotlin.math.sin
/**
* Shows how to create and render a [Net]: a structure
* that connects two points with a circle in between,
* forming a string-like shape.
*
* The main circle moves following an invisible infinite sign,
* formed by a pair of sine functions. The moving circle is connected to
* two smaller static circles via a [Net], rendered as a white
* contour with a stroke weight 2 pixels wide.
*/
fun main() = application {
program {
extend {