Demos: ensure 720px wide, reduce indentation

openrndr-demos, orx-color, orx-jumpflood, orx-no-clear
This commit is contained in:
Abe Pazos
2025-01-25 13:30:18 +01:00
parent f84bf69713
commit fc4f7275fb
74 changed files with 1314 additions and 1293 deletions

View File

@@ -9,11 +9,11 @@ import org.openrndr.math.Vector2
fun main() = application {
configure {
width = 720
height = 720
width = 512
height = 512
}
program {
val rt = renderTarget(720, 720, 1.0) {
val rt = renderTarget(width, height, 1.0) {
colorBuffer(type = ColorType.FLOAT32)
}
val flowfield = colorBuffer(width, height, type = ColorType.FLOAT32)
@@ -28,9 +28,9 @@ fun main() = application {
val points = drawer.bounds.scatter(20.0)
drawer.points {
for ((index, point) in points.withIndex()) {
fill = ColorRGBa((index+1.0)/points.size, 0.0, 0.0, 1.0)
fill = ColorRGBa((index + 1.0) / points.size, 0.0, 0.0, 1.0)
for (i in 0 until 30) {
point(point + Vector2.uniformRing(15.0, 25.0)* Vector2(1.0, 1.0))
point(point + Vector2.uniformRing(15.0, 25.0) * Vector2(1.0, 1.0))
}
}
}