| Name | Type | Default | Description | 
|---|---|---|---|
x | 
            
            number | 0 | 
                 The X coordinate of the upper-left corner of the rounded rectangle  | 
        
y | 
            
            number | 0 | 
                 The Y coordinate of the upper-left corner of the rounded rectangle  | 
        
width | 
            
            number | 0 | 
                 The overall width of this rounded rectangle  | 
        
height | 
            
            number | 0 | 
                 The overall height of this rounded rectangle  | 
        
radius | 
            
            number | 20 | 
                 Controls the radius of the rounded corners  | 
        
Members
- Default Value:
 - 0
 
- Default Value:
 - 20
 
type PIXI.SHAPES.RREC readonly
The type of the object, mainly used to avoid instanceof checks
- Default Value:
 - PIXI.SHAPES.RREC
 
- See:
 
- Default Value:
 - 0
 
- Default Value:
 - 0
 
- Default Value:
 - 0
 
Methods
Creates a clone of this Rounded Rectangle.
Returns:
| Type | Description | 
|---|---|
| PIXI.RoundedRectangle | 
  | 
        
Checks whether the x and y coordinates given are contained within this Rounded Rectangle
| Name | Type | Description | 
|---|---|---|
x | 
            
            number | 
                 The X coordinate of the point to test.  | 
        
y | 
            
            number | 
                 The Y coordinate of the point to test.  | 
        
Returns:
| Type | Description | 
|---|---|
| boolean | 
  |