[orx-noise] Add comments to all demos, add demo

This commit is contained in:
Abe Pazos
2025-08-30 13:54:25 +02:00
parent 935e7cd9a8
commit 878f2b040d
18 changed files with 156 additions and 23 deletions

View File

@@ -5,6 +5,14 @@ import org.openrndr.extra.noise.gradient
import org.openrndr.extra.noise.simplex3D
import org.openrndr.extra.noise.withVector2Output
/**
* Demonstrates how to chain methods behind noise functions like `simplex3D` to
* alter its output. By default `simplex3D` produces one double value, but
* by calling `.withVector2Output()` it produces `Vector2` instances instead.
*
* The `.gradient()` method alters the output to return the direction of fastest
* increase. Read more in [WikiPedia](https://en.wikipedia.org/wiki/Gradient).
*/
fun main() = application {
configure {
width = 720