rectangles
Draws a set of rectangles based on the given positions and dimensions.
Parameters
A list of Vector2 objects representing the positions where rectangles will be drawn.
The width of each rectangle.
The height of each rectangle. Defaults to the value of the width parameter.
Draws multiple rectangles based on the specified positions and dimensions.
Parameters
A list of Vector2 representing the positions of the rectangles.
A list of Vector2 representing the dimensions (width and height) of the rectangles.
Draws a list of rectangles on the specified context using the given draw style.
Parameters
A list of Rectangle objects to be drawn.
Draws a specified number of rectangles from the given rectangle batch.
Parameters
The batch of rectangles to be drawn.
The number of rectangles to draw from the batch. Defaults to the size of the batch.
Facilitates the construction and rendering of rectangles in a batch process.
Parameters
A lambda function with receiver of type RectangleBatchBuilder
to define the attributes and properties of the rectangles to be drawn.