openrndr / org.openrndr.draw / CircleBatchBuilder

CircleBatchBuilder

class CircleBatchBuilder : BatchBuilder (source)

Builder for stored circle batches

Types

Entry

class Entry

Constructors

<init>

Builder for stored circle batches

CircleBatchBuilder(drawer: Drawer)

Properties

entries

val entries: MutableList<Entry>

Functions

batch

Generate the stored batch

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

circle

Add a circle to the batch

fun circle(x: Double, y: Double, radius: Double): Unit
fun circle(position: Vector2, radius: Double): Unit
fun circle(circle: Circle): Unit

circles

Add a circle to the batch

fun circles(circles: List<Circle>): Unit

Add circles to the batch

fun circles(centers: List<Vector2>, radius: Double): Unit
fun circles(centers: List<Vector2>, radii: List<Double>): Unit