openrndr
0.4.5-dev.4.uncommitted+98ebace
common
openrndr-draw
/
org.openrndr.draw
/
RectangleBatchBuilder
Rectangle
Batch
Builder
class
RectangleBatchBuilder
(
val
drawer
:
Drawer
)
:
BatchBuilder
(
source
)
Members
Constructors
Rectangle
Batch
Builder
Link copied to clipboard
constructor
(
drawer
:
Drawer
)
Types
Entry
Link copied to clipboard
class
Entry
(
val
fill
:
ColorRGBa
?
,
val
stroke
:
ColorRGBa
?
,
val
strokeWeight
:
Double
,
val
offset
:
Vector3
,
val
dimensions
:
Vector2
,
val
rotation
:
Double
)
Functions
batch
Link copied to clipboard
fun
batch
(
existingBatch
:
RectangleBatch
?
=
null
)
:
RectangleBatch
Generate the stored batch
rectangle
Link copied to clipboard
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
fun
rectangles
(
rectangles
:
List
<
Rectangle
>
)
Properties
drawer
Link copied to clipboard
val
drawer
:
Drawer
entries
Link copied to clipboard
val
entries
:
MutableList
<
RectangleBatchBuilder.Entry
>
fill
Link copied to clipboard
var
fill
:
ColorRGBa
?
Active fill color
stroke
Link copied to clipboard
var
stroke
:
ColorRGBa
?
Active stroke color
stroke
Weight
Link copied to clipboard
var
strokeWeight
:
Double
Active stroke weight