[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user