Skip to main content

graphics.rounded_rectangle()

graphics.rounded_rectangle(param_table)
graphics.rounded_rectangle(x, y, width, height, radius_x, radius_y)

This function creates a SimpleGeometry object as a rounded rectangle.

Parameters

ParameterTypeDescription
param_tabletableThis parameter is in associative array table format, meaning it's specified by keys rather than parameter positions. See the Parameters Table section.
xnumberX-coordinate of the top-left corner of the rectangle.
ynumberY-coordinate of the top-left corner of the rectangle.
widthnumberWidth of the rectangle.
heigthnumberHeight of the rectangle.
radius_xnumberX-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
radius_ynumberY-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.

Parameters Table

KeyTypeDescription
xnumberX-coordinate of the top-left corner of the rectangle.
ynumberY-coordinate of the top-left corner of the rectangle.
widthnumberWidth of the rectangle.
heigthnumberHeight of the rectangle.
radius_xnumberX-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
radius_ynumberY-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.

Return Values

This function returns a SimpleGeometry object.

See Also