new GOWN.shapes.Rect(color, alpha, width, height, radius)
Basic rectangular shape
Name | Type | Description |
---|---|---|
color |
Number | Color of the rectangular shape |
alpha |
Number | Alpha value of the rectangular shape |
width |
Number | Width of the rectangular shape |
height |
Number | Height of the rectangular shape |
radius |
Number | Radius of the rectangular shape |
Extends
Members
-
alphaNumber
-
The alpha of the shape, setting this will redraw the component.
- Default Value:
- 1.0
-
colorNumber
-
The fill color of the shape, setting this will redraw the component. Setting the color to a negative value or 'null', the shape will not be filled (comes in handy when you only want to draw the border).
-
heightNumber
-
The height of the shape, setting this will redraw the component.
-
radiusNumber
-
The radius of the rectangle border, setting this will redraw the component.
-
widthNumber
-
The width of the shape, setting this will redraw the component.