Tree


NameTree JSON
Version 0.2.4 PyPI version JSON
download
home_pagehttps://github.com/PixelwarStudio/PyTree
SummaryA package for creating and drawing trees
upload_time2018-07-03 20:49:29
maintainer
docs_urlNone
authorPixelwar
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            PyTree
======
.. image:: https://img.shields.io/pypi/v/tree.svg?style=flat-square
        :target: https://pypi.python.org/pypi/Tree

.. image:: https://img.shields.io/pypi/l/Tree.svg?style=flat-square
        :target: https://github.com/PixelwarStudio/PyTree/blob/master/LICENSE

Python package, which you can use to generate and drawing trees, realistic or fractal ones.

Usage
-----
.. code-block:: bash

    $ pip install Tree

.. code-block:: python

    from math import pi, radians as rad
    from Tree.core import Tree
    from PIL import Image

    branches = (
        (.5, rad(-30)),
        (.6, rad(30)),
        (.4, rad(60))
    )

    def main():
        tree = Tree(
            pos=(0, 0, 0, -500),
            branches=branches
        )
        
        # Let the tree grow
        tree.grow(10)
        
        # Move the tree in the right position, so that the tree is completly in the image
        tree.move_in_rectangle()

        im = Image.new("RGB", tree.get_size(), (239, 239, 239))
        tree.draw_on(im, (85, 25, 0, 128, 53, 21), (0, 62, 21), 10)
        im.show()

    if __name__ == '__main__':
        main()
    
.. image:: https://raw.githubusercontent.com/PixelwarStudio/PyTree/master/images/example.png

Documentation
-------------
The documentation is hosted on Readthedocs_.

.. _Readthedocs: http://pytree.readthedocs.io/en/latest/
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PixelwarStudio/PyTree",
    "name": "Tree",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Pixelwar",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/29/3f/63cbed2909786f0e5ac30a4ae5791ad597c6b5fec7167e161c55bba511ce/Tree-0.2.4.tar.gz",
    "platform": "",
    "description": "PyTree\n======\n.. image:: https://img.shields.io/pypi/v/tree.svg?style=flat-square\n        :target: https://pypi.python.org/pypi/Tree\n\n.. image:: https://img.shields.io/pypi/l/Tree.svg?style=flat-square\n        :target: https://github.com/PixelwarStudio/PyTree/blob/master/LICENSE\n\nPython package, which you can use to generate and drawing trees, realistic or fractal ones.\n\nUsage\n-----\n.. code-block:: bash\n\n    $ pip install Tree\n\n.. code-block:: python\n\n    from math import pi, radians as rad\n    from Tree.core import Tree\n    from PIL import Image\n\n    branches = (\n        (.5, rad(-30)),\n        (.6, rad(30)),\n        (.4, rad(60))\n    )\n\n    def main():\n        tree = Tree(\n            pos=(0, 0, 0, -500),\n            branches=branches\n        )\n        \n        # Let the tree grow\n        tree.grow(10)\n        \n        # Move the tree in the right position, so that the tree is completly in the image\n        tree.move_in_rectangle()\n\n        im = Image.new(\"RGB\", tree.get_size(), (239, 239, 239))\n        tree.draw_on(im, (85, 25, 0, 128, 53, 21), (0, 62, 21), 10)\n        im.show()\n\n    if __name__ == '__main__':\n        main()\n    \n.. image:: https://raw.githubusercontent.com/PixelwarStudio/PyTree/master/images/example.png\n\nDocumentation\n-------------\nThe documentation is hosted on Readthedocs_.\n\n.. _Readthedocs: http://pytree.readthedocs.io/en/latest/",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A package for creating and drawing trees",
    "version": "0.2.4",
    "project_urls": {
        "Homepage": "https://github.com/PixelwarStudio/PyTree"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "293f63cbed2909786f0e5ac30a4ae5791ad597c6b5fec7167e161c55bba511ce",
                "md5": "590864875614d427a8f913776941259c",
                "sha256": "f84d8ec9bf50dd69f551da78925a23d110864e7706551f590cdade27646f7883"
            },
            "downloads": -1,
            "filename": "Tree-0.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "590864875614d427a8f913776941259c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6489,
            "upload_time": "2018-07-03T20:49:29",
            "upload_time_iso_8601": "2018-07-03T20:49:29.918105Z",
            "url": "https://files.pythonhosted.org/packages/29/3f/63cbed2909786f0e5ac30a4ae5791ad597c6b5fec7167e161c55bba511ce/Tree-0.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-07-03 20:49:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PixelwarStudio",
    "github_project": "PyTree",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "tree"
}
        
Elapsed time: 0.12320s