Draw

void Draw(
const Rgba &color )

Draws the rectangle to the Canvas filled with the color.

void Draw(
const Rgba *colors )

Draws a gradient filled rectangle. The colors should be specified clockwise for each corner starting from the top-left corner.

Other functions of the class Rect
Draw
Draws a filled rectangle
DrawOutline
Draws an outline of the rectangle
SetAccuracy
Sets the accuracy of the rounded edges
SetRoundness
Sets the roundness of the corners


Questions about Draw? Click here.