[orx-shade-styles] Write comments on demos

This commit is contained in:
Abe Pazos
2025-09-20 19:07:38 +02:00
parent ec9ec947a6
commit ec4032c452
29 changed files with 298 additions and 61 deletions

View File

@@ -11,6 +11,15 @@ import org.openrndr.extra.shapes.primitives.grid
import org.openrndr.extra.shapes.primitives.placeIn
import org.openrndr.math.Vector2
/**
* Creates a 3x3 grid of gradients demonstrating how the same gradient can look different depending on
* the aspect ratio of the target shape and the fit method used.
*
* The first column features a vertical rectangle.
* The second one, a square, and the third one a horizontal rectangle.
*
* The rows feature the different fit methods: `FillFit.STRETCH`, `FillFit.COVER` and `FillFit.CONTAIN`.
*/
fun main() {
application {
configure {