RoundedRectangle Class
The Rounded Rectangle object is an area defined by its position and has nice rounded corners, as indicated by its top-left corner point (x, y) and by its width and its height.
Constructor
RoundedRectangle
(
-
x
-
y
-
width
-
height
-
radius
Parameters:
-
x
NumberThe X coordinate of the upper-left corner of the rounded rectangle
-
y
NumberThe Y coordinate of the upper-left corner of the rounded rectangle
-
width
NumberThe overall width of this rounded rectangle
-
height
NumberThe overall height of this rounded rectangle
-
radius
NumberThe overall radius of this corners of this rounded rectangle
Methods
clone
()
RoundedRectangle
Creates a clone of this Rounded Rectangle
Returns:
RoundedRectangle:
a copy of the rounded rectangle
Properties
height
Float
Default: 0
radius
Float
Default: 20
width
Float
Default: 0
x
Float
Default: 0
y
Float
Default: 0