[orx-shapes] Add custom tensions to HobbyCurve and related 2D/3D demos and tests
This commit is contained in:
@@ -29,7 +29,7 @@ fun main() = application {
|
||||
val hobby3D = hobbyCurve(
|
||||
pts.map { it.xy0 + Vector3(0.0, 0.0, Double.uniform(-360.0, 360.0, r)) },
|
||||
true,
|
||||
tensions = { chordIndex: Int ->
|
||||
tensions = { chordIndex, inAngle, outAngle ->
|
||||
Pair(
|
||||
cos(seconds + chordIndex * 0.1) * 0.5 + 0.5,
|
||||
cos(seconds + (1.0 + chordIndex) * 0.1) * 0.5 + 0.5
|
||||
|
||||
Reference in New Issue
Block a user