[orx-noise] Tidy up demos
Produce 720px wide images.
Use main() = application { for reduced indentation
This commit is contained in:
@@ -10,20 +10,18 @@ import org.openrndr.extra.noise.hammersley.hammersley2D
|
||||
* 400 2D Hammersley points mapped within the bounds of the application's resolution.
|
||||
* These points are visualized by rendering circles at their respective positions.
|
||||
*/
|
||||
fun main() {
|
||||
application {
|
||||
configure {
|
||||
width = 720
|
||||
height = 720
|
||||
}
|
||||
fun main() = application {
|
||||
configure {
|
||||
width = 720
|
||||
height = 720
|
||||
}
|
||||
|
||||
program {
|
||||
extend {
|
||||
val points = (0 until 400).map {
|
||||
hammersley2D(it, 400) * 720.0
|
||||
}
|
||||
drawer.circles(points, 5.0)
|
||||
program {
|
||||
extend {
|
||||
val points = (0 until 400).map {
|
||||
hammersley2D(it, 400) * 720.0
|
||||
}
|
||||
drawer.circles(points, 5.0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user