Module pinky :: Class Rect

Class Rect

object --+    
         |    
     Shape --+
             |
            Rect

An axis-aligned rectangle with rounded corners.

Instance Methods
 
__init__(self, x, y, width, height, rx, ry)
Initialize a rectangle from the given position, dimensions, and corner radii.
 
__repr__(self)
repr(x)

Inherited from Shape: transform

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  centroid
The mass center of the shape.
  bounding_box
The bounding box of the shape.

Inherited from Shape: area

Inherited from object: __class__

Method Details

__init__(self, x, y, width, height, rx, ry)
(Constructor)

 

Initialize a rectangle from the given position, dimensions, and corner radii.

Overrides: object.__init__

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details

centroid

The mass center of the shape.

Get Method:
unreachable.centroid(self)

bounding_box

The bounding box of the shape.

Get Method:
unreachable.bounding_box(self)