{ "info": { "author": "F\u00e1bio Mac\u00eado Mendes", "author_email": "fabiomacedomendes@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: POSIX", "Programming Language :: Python", "Topic :: Software Development :: Libraries" ], "description": "The :mod:`colortools` defines a :cls:`Color` object that can be used to\nrepresent and manipulate colors in various contexts. It was created with the\n:mod:`FGAme` game engine, but it can also be used in other contexts such as\narts and web applications.\n\nColors can be initialized from the RGB/RGBA components, in which each component\nis in the 0-255 range.\n\n>>> w1 = Color(255, 255, 255)\n>>> w2 = Color(255, 255, 255, 255)\n>>> w1 == w2\nTrue\n\nThe constructor also accepts color names, hex strings or hex numbers.\n\n>>> Color('white') == Color('#FFF') == Color(0xffffff) == Color(255, 255, 255)\nTrue\n\nAll names in CSS3.0 are accepted (see the complete list `here`).\nIt is worth noting that although the *G* in RGB stands for green, the color\nwith a full green value is called *lime*, while \"green\" is **#008000** rather than\n**#00FF00**.\n\nUsage and API\n-------------\n\nColor objects are immutable and behave like a tuple of 4 values.\n\n>>> list(Color('green'))\n[0, 80, 0, 255]\n\nIt also exposes several different representations of a color using the\nappropriate attribute.\n\n>>> blue = Color('blue')\n>>> blue.rbg\n(255, 0, 0)\n\n>>> blue.rgbf\n(1.0, 0.0, 0.0)\n\n>>> blue.rgbu\n16711680\n\nColor objects also implement a few useful transformations\n\n>>> blue.darken(0.1) # darken by 10%\nColor(229, 0, 0)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "colortools", "package_url": "https://pypi.org/project/colortools/", "platform": "any", "project_url": "https://pypi.org/project/colortools/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/colortools/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "A short description for your project.", "version": "0.1.2" }, "last_serial": 2332638, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "0e7d91e77542bd9c4a8c91a7ae30f425", "sha256": "05ec86ce48c5f6650f1fe0204e37182850cca8a20a4d33f4d034cb8fb7d7d52f" }, "downloads": -1, "filename": "colortools-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0e7d91e77542bd9c4a8c91a7ae30f425", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7746, "upload_time": "2016-09-09T00:14:53", "url": "https://files.pythonhosted.org/packages/22/5f/af13245d368b78fc01a851e697ffd7273ba5fae3b2466440c08f4376265d/colortools-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "10eea024c2f2ff5ee63c109bdf03fbba", "sha256": "60db523ad7b6f951c4b810b88e4b2feabbf49691e9d81f5fdb4095423ab03665" }, "downloads": -1, "filename": "colortools-0.1.2.tar.gz", "has_sig": false, "md5_digest": "10eea024c2f2ff5ee63c109bdf03fbba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7696, "upload_time": "2016-09-09T00:54:21", "url": "https://files.pythonhosted.org/packages/a2/d6/471b82eb96ec1d92055165f65f33083e4244b29deec715549182f60e518e/colortools-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "10eea024c2f2ff5ee63c109bdf03fbba", "sha256": "60db523ad7b6f951c4b810b88e4b2feabbf49691e9d81f5fdb4095423ab03665" }, "downloads": -1, "filename": "colortools-0.1.2.tar.gz", "has_sig": false, "md5_digest": "10eea024c2f2ff5ee63c109bdf03fbba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7696, "upload_time": "2016-09-09T00:54:21", "url": "https://files.pythonhosted.org/packages/a2/d6/471b82eb96ec1d92055165f65f33083e4244b29deec715549182f60e518e/colortools-0.1.2.tar.gz" } ] }