[orx-shapes] Add irregular grid support and demo examples

This commit introduces `Rectangle.irregularGrid`, enabling the creation of grids with irregular spacing based on weights. New helper methods and properties for 2D rectangle lists, such as subgrid selection, bounds calculation, and random access, are also added. Additionally, two new demos showcase regular and irregular grid features.
This commit is contained in:
Edwin Jakobs
2025-02-20 16:57:14 +01:00
parent 70e87c73ce
commit a7d878a710
4 changed files with 223 additions and 2 deletions

View File

@@ -5,8 +5,10 @@ import org.openrndr.color.ColorRGBa
import org.openrndr.draw.font.loadFace
import org.openrndr.extra.shapes.bounds.bounds
import org.openrndr.extra.shapes.text.shapesFromText
import org.openrndr.internal.Driver
fun main() = application {
System.setProperty("org.openrndr.draw.wait_for_finish", "true")
configure {
width = 720
height = 720