[orx-shapes] Demo comments
This commit is contained in:
@@ -4,7 +4,13 @@ import org.openrndr.extra.noise.shapes.hash
|
||||
import org.openrndr.shape.Triangle
|
||||
|
||||
/**
|
||||
* Demonstrate the generation of uniformly distributed points inside a list of triangles
|
||||
* Demonstrate the generation of uniformly distributed points inside a list of triangles.
|
||||
* For demonstration purposes there is only one triangle in the list, but could contain many.
|
||||
*
|
||||
* We can consider the `hash` function as giving us access to a slice in a pool of random Vector2 values.
|
||||
* Since we increase the x argument in the call to `hash()` based on the current time in seconds,
|
||||
* older random points get replaced by newer ones, then stay visible for a while.
|
||||
*
|
||||
* @see <img src="https://raw.githubusercontent.com/openrndr/orx/media/orx-noise/images/DemoTriangleNoise01Kt.png">
|
||||
*/
|
||||
fun main() = application {
|
||||
|
||||
Reference in New Issue
Block a user