new GOWN.shapes.Shape(color, alpha, width, height)
Shape base class
Name | Type | Default | Description |
---|---|---|---|
color |
Number | Color of the shape | |
alpha |
Number | 1.0 | optional Alpha value of the shape |
width |
Number | Width of the shape | |
height |
Number | Height of the shape |
Extends
- PIXI.Graphics
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.
-
widthNumber
-
The width of the shape, setting this will redraw the component.