fill Rect
Draws a filled rectangle on the canvas.
Parameters
x
The X coordinate of the rectangle top-left corner
y
The Y coordinate of the rectangle top-left corner
width
The width of the rectangle
height
The height of the rectangle
color
The color of the rectangle
fun Canvas.fillRect(x: Int, y: Int, width: Int, height: Int, rotation: Float, color: Color = Color.BLACK)
Draws a rotated filled rectangle on the canvas.
Parameters
x
The X coordinate of the rectangle top-left corner
y
The Y coordinate of the rectangle top-left corner
width
The width of the rectangle
height
The height of the rectangle
rotation
The rotation of the rectangle in degrees
color
The color of the rectangle