{ "info": { "author": "Al Sweigart", "author_email": "al@inventwithpython.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: MacOS X", "Environment :: Win32 (MS Windows)", "Environment :: X11 Applications", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "PyTweening\r\n==========\r\n\r\nA collection of tweening / easing functions implemented in Python.\r\n\r\nExample Usage\r\n=============\r\n\r\nAll tweening / easing functions are passed an argument of a float from 0.0 (for the beginning) to 1.0 (for the end) of the tween:\r\n\r\n >>> pytweening.linear(0.5)\r\n 0.5\r\n >>> pytweening.linear(0.75)\r\n 0.75\r\n >>> pytweening.linear(1.0)\r\n 1.0\r\n >>> pytweening.easeInQuad(0.5)\r\n 0.25\r\n >>> pytweening.easeInQuad(0.75)\r\n 0.5625\r\n >>> pytweening.easeInQuad(1.0)\r\n 1.0\r\n >>> pytweening.easeInOutSine(0.5)\r\n 0.49999999999999994\r\n >>> pytweening.easeInOutSine(0.75)\r\n 0.8535533905932737\r\n >>> pytweening.easeInOutSine(1.0)\r\n 1.0\r\n\r\nThe getLine() function also provides a Bresenham line algorithm implementation:\r\n\r\n >>> pytweening.getLine(0, 0, 5, 10)\r\n [(0, 0), (0, 1), (1, 2), (1, 3), (2, 4), (2, 5), (3, 6), (3, 7), (4, 8), (4, 9), (5, 10)]\r\n\r\nThe getLinePoint() function finds a point on the provided line (even if it extends before or past the start or end points):\r\n\r\n >>> getLinePoint(0, 0, 5, 10, 0.0)\r\n (0.0, 0.0)\r\n >>> getLinePoint(0, 0, 5, 10, 0.25)\r\n (1.25, 2.5)\r\n >>> getLinePoint(0, 0, 5, 10, 0.5)\r\n (2.5, 5.0)\r\n >>> getLinePoint(0, 0, 5, 10, 0.75)\r\n (3.75, 7.5)\r\n >>> getLinePoint(0, 0, 5, 10, 1.0)\r\n (5.0, 10.0)\r\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/asweigart/pytweening", "keywords": "2D animation tween tweening easing", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "PyTweening", "package_url": "https://pypi.org/project/PyTweening/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/PyTweening/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/asweigart/pytweening" }, "release_url": "https://pypi.org/project/PyTweening/1.0.3/", "requires_dist": null, "requires_python": null, "summary": "A collection of tweening / easing functions.", "version": "1.0.3" }, "last_serial": 1790984, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "701b6e3d56b55151d5f07b56d59e950e", "sha256": "c8ac942cc1bdb32772e7f6e6b2d7eeb79d795c23519fde74bd5ee203fb7c2730" }, "downloads": -1, "filename": "PyTweening-1.0.0.zip", "has_sig": false, "md5_digest": "701b6e3d56b55151d5f07b56d59e950e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13588, "upload_time": "2014-08-04T09:00:35", "url": "https://files.pythonhosted.org/packages/d2/82/102e2ce5d86f5555419ce90af92043d260d9ca16aa001c75717cd1086c61/PyTweening-1.0.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "260e0ad87d642040aa219dc95db53b72", "sha256": "72d1199f1444c6b427ecd9d2bf4b890fd0b63c4c87c9a9dd957f722fc83188b0" }, "downloads": -1, "filename": "PyTweening-1.0.1.zip", "has_sig": false, "md5_digest": "260e0ad87d642040aa219dc95db53b72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15378, "upload_time": "2014-08-31T03:52:20", "url": "https://files.pythonhosted.org/packages/95/25/2362571b051ba518a754d1c12b2ed4d6f0012d7c415ed6a4c42ff2c33f52/PyTweening-1.0.1.zip" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "2da5a41706f04d861d82dd7de9b9a34d", "sha256": "46bb280d3bb37b69fb3971929cac5c0cb58165729327525b2410417e0af23c2b" }, "downloads": -1, "filename": "PyTweening-1.0.2.zip", "has_sig": false, "md5_digest": "2da5a41706f04d861d82dd7de9b9a34d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15782, "upload_time": "2015-09-09T18:32:31", "url": "https://files.pythonhosted.org/packages/e8/d5/85fe54ea374f5674af4cb0f64126a995c9452b2f2d01c93d15d377532e48/PyTweening-1.0.2.zip" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "41176abe770e8c318dc1f4213831e6da", "sha256": "4b608a570f4dccf2201e898f643c2a12372eb1d71a3dbc7e778771b603ca248b" }, "downloads": -1, "filename": "PyTweening-1.0.3.zip", "has_sig": false, "md5_digest": "41176abe770e8c318dc1f4213831e6da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15771, "upload_time": "2015-10-28T23:47:39", "url": "https://files.pythonhosted.org/packages/b9/f8/c32a58d6e4dff8aa5c27e907194d69f3b57e525c2e4af96f39c6e9c854d2/PyTweening-1.0.3.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "41176abe770e8c318dc1f4213831e6da", "sha256": "4b608a570f4dccf2201e898f643c2a12372eb1d71a3dbc7e778771b603ca248b" }, "downloads": -1, "filename": "PyTweening-1.0.3.zip", "has_sig": false, "md5_digest": "41176abe770e8c318dc1f4213831e6da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15771, "upload_time": "2015-10-28T23:47:39", "url": "https://files.pythonhosted.org/packages/b9/f8/c32a58d6e4dff8aa5c27e907194d69f3b57e525c2e4af96f39c6e9c854d2/PyTweening-1.0.3.zip" } ] }