[orx-shapes] Demo comments

This commit is contained in:
Abe Pazos
2025-08-30 23:56:56 +02:00
parent 2c3417dad6
commit ea4a2c0d89
12 changed files with 196 additions and 64 deletions

View File

@@ -13,6 +13,15 @@ import kotlin.math.cos
/**
* Demonstration of non-uniform contour blending
*
* The `mix` method of a `ContourBlend` does not only accept a Double, but also a function.
* This function should take one Double argument, which specifies the normalized `t` value between
* the start and the end of the contour, and should return a normalized value indicating the
* morphing state between the first contour and the second contour, for that specific t value.
*
* This allows us, for instance, to morph one part of the shape first, then have other parts follow.
*
* This demo shows a grid of 9 contours which are part circle and part 5-point start.
*/
fun main() = application {
configure {