[orx-fx] Add comments to demos

This commit is contained in:
Abe Pazos
2025-09-23 19:20:42 +02:00
parent 857f3458e3
commit fd022e9d0e
16 changed files with 203 additions and 70 deletions

View File

@@ -3,6 +3,12 @@ import org.openrndr.draw.createEquivalent
import org.openrndr.draw.loadImage
import org.openrndr.extra.fx.distort.Lenses
/**
* Demonstrates the [Lenses] effect, which by default subdivides a color buffer
* in 8 columns and 6 rows, and displaces the source texture inside each rectangle.
* Try experimenting with some of the other parameters, like `distort`.
* You can even animate them.
*/
fun main() = application {
configure {
width = 640
@@ -14,7 +20,7 @@ fun main() = application {
val lenses = Lenses()
val edges = image.createEquivalent()
extend {
lenses.rotation = 0.0
lenses.rotation = 30.0
lenses.scale = 1.5
lenses.apply(image, edges)