openrndr / org.openrndr.draw / RectangleBatchBuilder

RectangleBatchBuilder

class RectangleBatchBuilder : BatchBuilder (source)

Types

Entry

class Entry

Constructors

<init>

RectangleBatchBuilder(drawer: Drawer)

Properties

entries

val entries: MutableList<Entry>

Functions

batch

Generate the stored batch

fun batch(existingBatch: RectangleBatch? = null): RectangleBatch

rectangle

fun rectangle(x: Double, y: Double, width: Double, height: Double, rotationInDegrees: Double = 0.0): Unit
fun rectangle(corner: Vector2, width: Double, height: Double, rotationInDegrees: Double = 0.0): Unit
fun rectangle(rectangle: Rectangle, rotationInDegrees: Double = 0.0): Unit

rectangles

fun rectangles(rectangles: List<Rectangle>): Unit