[orx-fx] Add comments to demos
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user