{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-display-shapes/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/display-shapes/en/latest/\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Display_Shapes.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Display_Shapes\n :alt: Build Status\n\nVarious common shapes for use with displayio\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nInstalling from PyPI\n--------------------\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI `_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-display_shapes\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-display_shapes\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .env\n source .env/bin/activate\n pip3 install adafruit-circuitpython-display_shapes\n\nUsage Example\n=============\n\n..code-block:: python\n\n import board\n import displayio\n from adafruit_display_shapes.rect import Rect\n from adafruit_display_shapes.circle import Circle\n from adafruit_display_shapes.roundrect import RoundRect\n\n splash = displayio.Group(max_size=10)\n board.DISPLAY.show(splash)\n\n color_bitmap = displayio.Bitmap(320, 240, 1)\n color_palette = displayio.Palette(1)\n color_palette[0] = 0xFFFFFF\n bg_sprite = displayio.TileGrid(color_bitmap, pixel_shader=color_palette, position=(0, 0))\n print(bg_sprite.position)\n splash.append(bg_sprite)\n\n triangle = Triangle(170, 50, 120, 140, 210, 160, fill=0x00FF00, outline=0xFF00FF)\n splash.append(triangle)\n\n rect = Rect(80, 20, 41, 41, fill=0x0)\n splash.append(rect)\n\n circle = Circle(100, 100, 20, fill=0x00FF00, outline=0xFF00FF)\n splash.append(circle)\n\n rect2 = Rect(50, 100, 61, 81, outline=0x0, stroke=3)\n splash.append(rect2)\n\n roundrect = RoundRect(10, 10, 61, 81, 10, fill=0x0, outline=0xFF00FF, stroke=6)\n splash.append(roundrect)\n\n while True:\n pass\n\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nZip release files\n-----------------\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-display_shapes --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_Display_Shapes", "keywords": "adafruit blinka circuitpython micropython display_shapes shapes displayio drawing", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-display-shapes", "package_url": "https://pypi.org/project/adafruit-circuitpython-display-shapes/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-display-shapes/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_Display_Shapes" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-display-shapes/1.1.2/", "requires_dist": null, "requires_python": "", "summary": "Various common shapes for use with displayio", "version": "1.1.2" }, "last_serial": 5641617, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "29cc1fd7c4a9dbad900a3269cd5aef32", "sha256": "b2d754bbe97044e409ea072b6af1e55b65fdbde6b1400634097426a8551cadc9" }, "downloads": -1, "filename": "adafruit-circuitpython-display_shapes-1.0.1.tar.gz", "has_sig": false, "md5_digest": "29cc1fd7c4a9dbad900a3269cd5aef32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21173, "upload_time": "2019-03-26T16:45:14", "url": "https://files.pythonhosted.org/packages/23/33/7e51f31320197f870e4cb9f6bdb07293eb5e5360708c1aaff5800be89535/adafruit-circuitpython-display_shapes-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "5a73a5b26664aaefd58c0acc1cde8c5b", "sha256": "1e585fd039109584429ce6375ae223c34c4a9d3123e4ef75db56cedf4a016769" }, "downloads": -1, "filename": "adafruit-circuitpython-display_shapes-1.1.0.tar.gz", "has_sig": false, "md5_digest": "5a73a5b26664aaefd58c0acc1cde8c5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22193, "upload_time": "2019-08-06T00:43:39", "url": "https://files.pythonhosted.org/packages/fc/af/6c246119aad9013326b39c9f579daddb3b1bd62456db6ad1c02e7882e8dc/adafruit-circuitpython-display_shapes-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "f21134978a7e9f89857166ffa0fe57b3", "sha256": "4d6358493151741bad5d6b565dee0a2b7b1270227f370d6e260d532997bb8c6a" }, "downloads": -1, "filename": "adafruit-circuitpython-display_shapes-1.1.1.tar.gz", "has_sig": false, "md5_digest": "f21134978a7e9f89857166ffa0fe57b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22197, "upload_time": "2019-08-06T19:05:27", "url": "https://files.pythonhosted.org/packages/bf/eb/33c10b4f22e300765d5f34ea07416f8019abf19de1c8d91313b6c4dce001/adafruit-circuitpython-display_shapes-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "4e2c82cc11e7f87f1a8649c0bd6fe648", "sha256": "bfd35dcb551a081b3edf689b5ef96a7c3a2662e85e284676288b67f7bf083954" }, "downloads": -1, "filename": "adafruit-circuitpython-display_shapes-1.1.2.tar.gz", "has_sig": false, "md5_digest": "4e2c82cc11e7f87f1a8649c0bd6fe648", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22246, "upload_time": "2019-08-06T20:41:06", "url": "https://files.pythonhosted.org/packages/fe/17/d14f7ed58a40a9bf88b1d6b1ee821cf4c60c53bee2ba35218197af6a0a81/adafruit-circuitpython-display_shapes-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4e2c82cc11e7f87f1a8649c0bd6fe648", "sha256": "bfd35dcb551a081b3edf689b5ef96a7c3a2662e85e284676288b67f7bf083954" }, "downloads": -1, "filename": "adafruit-circuitpython-display_shapes-1.1.2.tar.gz", "has_sig": false, "md5_digest": "4e2c82cc11e7f87f1a8649c0bd6fe648", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22246, "upload_time": "2019-08-06T20:41:06", "url": "https://files.pythonhosted.org/packages/fe/17/d14f7ed58a40a9bf88b1d6b1ee821cf4c60c53bee2ba35218197af6a0a81/adafruit-circuitpython-display_shapes-1.1.2.tar.gz" } ] }