Metadata-Version: 1.1
Name: PyRect
Version: 0.0.2
Summary: PyRect is a simple module with a Rect class for Pygame-like rectangular areas.
Home-page: https://github.com/asweigart/pyrect
Author: Al Sweigart
Author-email: al@inventwithpython.com
License: BSD
Description: ======
        PyRect
        ======
        PyRect is a simple module with a Rect class for Pygame-like rectangular areas.
        
        This module is like a stand-alone version of Pygame's Rect class. It is similar to the Rect module by Simon Wittber, but compatible with both Python 2 and 3.
        
        Currently under development, though the basic features work.
        
        Examples
        ========
        
            >>> import pyrect
            >>> rectangle = pyrect.Rect(0, 0, 20, 10)
            >>> rectangle.topleft
            (0, 0)
            >>> rectangle.bottomright
            (20, 10)
            >>> rectangle.width
            20
            >>> rectangle.height
            10
            >>> rectangle.width = 100 # updating one attribute automatically updates all the others
            >>> rectangle.bottomright
            (100, 10)
            >>> rectangle.left = 50
            >>> rectangle.topleft
            (50, 0)
            >>> rectangle.bottomright
            (150, 10)
            >>> rectangle.box # the box tuple shows (left, top, width, height)
            (50, 0, 100, 10)
        
            >>> floatRectangle = pyrect.Rect(0, 0.2, 20.4, 10.6, enableFloat=True) # allow float values
            >>> floatRectangle.box
            (0.0, 0.2, 20.4, 10.6)
        
            >>> intRectangle = pyrect.Rect(0, 0.2, 20.4, 10.6) # integers-only by default
            >>> intRectangle.box
            (0, 0, 20, 10)
        
Keywords: pygame rect rectangular rectangle area
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Win32 (MS Windows)
Classifier: Environment :: MacOS X
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
