Metadata-Version: 1.1
Name: PyTextCanvas
Version: 0.0.3
Summary: PyTextCanvas is a module for writing text and ascii art to a 2D string "canvas" in Python.
Home-page: https://github.com/asweigart/pytextcanvas
Author: Al Sweigart
Author-email: al@inventwithpython.com
License: BSD
Description: ============
        PyTextCanvas
        ============
        
        PyTextCanvas is a module for writing text and ascii art to a 2D string "canvas" in Python.
        
        PyTextCanvas has a Canvas class, which is a data structure for a "2D string", where characters can be "drawn" to the canvas using x, y coordinates. The canvas can be exported as a basic Python string or HTML.
        
        Runs on Windows, macOS, and Linux.
        
        This module could be used in curses-like or urwid-like modules.
        
        
        Installation
        ============
        
        
            ``pip install pytextcanvas``
        
        
        Example Usage
        =============
        
            >>> import pytextcanvas as pytc
            >>> canvas = pytc.Canvas(20, 4)
            >>> canvas.fill('.')
            >>> print(canvas)
            ....................
            ....................
            ....................
            ....................
            >>> canvas.write('Hello, world!')
            >>> print(canvas)
            Hello, world!.......
            ....................
            ....................
            ....................
            >>> canvas.cursor = (10, 2)
            >>> canvas.write('Howdy!!!')
            >>> print(canvas)
            Hello, world!.......
            ....................
            ..........Howdy!!!..
            ....................
            >>> str(canvas)
            'Hello, world!.......\n....................\n..........Howdy!!!..\n....................'
            >>> canvas.rectangle('*', 0, 0, 20, 4)
            >>> print(canvas)
            ********************
            *..................*
            *.........Howdy!!!.*
            ********************
        
Keywords: text canvas bresenham line circle drawing 2D geometry shapes vector bitmap rotate rotation vector2bitmap
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Win32 (MS Windows)
Classifier: Environment :: X11 Applications
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.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
