[orx-noise] Tidy up demos

Produce 720px wide images.
Use main() = application { for reduced indentation
This commit is contained in:
Abe Pazos
2025-01-24 21:47:44 +01:00
parent a1b4070b51
commit c85144c6fe
23 changed files with 347 additions and 347 deletions

View File

@@ -8,20 +8,18 @@ import org.openrndr.extra.noise.rsequence.rSeq2D
* demonstrating 2D quasirandomly distributed points. The points are generated
* using the R2 sequence and drawn as circles with a radius of 5.0.
*/
fun main() {
application {
configure {
width = 720
height = 720
}
fun main() = application {
configure {
width = 720
height = 720
}
program {
extend {
val points = (0 until 4000).map {
rSeq2D(it) * 720.0
}
drawer.circles(points, 5.0)
program {
extend {
val points = (0 until 4000).map {
rSeq2D(it) * 720.0
}
drawer.circles(points, 5.0)
}
}
}
}