RectangleBatchBuilder

class RectangleBatchBuilder(drawer: Drawer) : BatchBuilder

Types

Entry
Link copied to clipboard
common
class Entry(fill: ColorRGBa?, stroke: ColorRGBa?, strokeWeight: Double, offset: Vector3, dimensions: Vector2, rotation: Double)

Functions

batch
Link copied to clipboard
common
fun batch(existingBatch: RectangleBatch? = null): RectangleBatch

Generate the stored batch

rectangle
Link copied to clipboard
common
fun rectangle(rectangle: Rectangle, rotationInDegrees: Double = 0.0)
fun rectangle(corner: Vector2, width: Double, height: Double, rotationInDegrees: Double = 0.0)
fun rectangle(x: Double, y: Double, width: Double, height: Double, rotationInDegrees: Double = 0.0)
rectangles
Link copied to clipboard
common
fun rectangles(rectangles: List<Rectangle>)

Properties

drawer
Link copied to clipboard
common
val drawer: Drawer
entries
Link copied to clipboard
common
val entries: MutableList<RectangleBatchBuilder.Entry>
fill
Link copied to clipboard
common
var fill: ColorRGBa?

Active fill color

stroke
Link copied to clipboard
common
var stroke: ColorRGBa?

Active stroke color

strokeWeight
Link copied to clipboard
common
var strokeWeight: Double

Active stroke weight