# Picture

Represents the set of draw commands to paint into a Canvas.

# Methods

# void clear(Color color)

Replaces all the pixels in the backing Canvas with the provided color.

Color color
The color value to clear with.

# void drawRoundedRect(Rect rect, float radius, Paint paint)

Draws a rectangle with rounded corners.

Rect rect
The dimensions of the rectangle to draw.
float radius
The corner radius of the rounded edges.
Paint paint
The Paint object that defines how the rectangle is stroked or filled.

# void submit(MonoBehaviour behaviour)

Submit the Picture for drawing into the backing Canvas that generated it.