[orx-math] Add demo and readme texts.

This commit is contained in:
Abe Pazos
2025-10-05 15:29:32 +02:00
parent 58c65ab393
commit 923e64f37a
8 changed files with 137 additions and 49 deletions

View File

@@ -9,6 +9,16 @@ import org.openrndr.shape.Rectangle
import kotlin.math.cos
import kotlin.math.sin
/**
* Demonstrates how to create a `LinearRange2D` out of two `LinearRange1D` instances.
* The first range interpolates a horizontal rectangle into a vertical one.
* The second range interpolates two smaller squares of equal size, one placed
* higher along the y-axis and another one lower.
*
* A grid of such rectangles is displayed, animating the `u` and `v` parameters based on
* `seconds`, `x` and `y` indices. The second range results in a vertical wave effect.
*
*/
fun main() {
application {
configure {