CircleBatchBuilder

class CircleBatchBuilder(drawer: Drawer) : BatchBuilder

Builder for stored circle batches

Constructors

CircleBatchBuilder
Link copied to clipboard
common
fun CircleBatchBuilder(drawer: Drawer)

Types

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

Functions

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

Generate the stored batch

circle
Link copied to clipboard
common
fun circle(circle: Circle)
fun circle(position: Vector2, radius: Double)
fun circle(x: Double, y: Double, radius: Double)

Add a circle to the batch

circles
Link copied to clipboard
common
fun circles(circles: List<Circle>)

Add a circle to the batch

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

Add circles to the batch

Properties

drawer
Link copied to clipboard
common
val drawer: Drawer
entries
Link copied to clipboard
common
val entries: MutableList<CircleBatchBuilder.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