easings


Nameeasings JSON
Version 3.1.2 PyPI version JSON
download
home_pageNone
SummaryCustomizable Optimized Easing Functions for Python
upload_time2025-03-27 07:39:53
maintainerNone
docs_urlNone
authorSylvie Isla
requires_python>=3.6
licenseNone
keywords easings easing ease animation interpolation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Easings

## Description

Customizable Optimized Library for Easing, Interpolation, Curves and Splines for Python.

## Installation

```sh
pip install easings
```

## Usage

Ease values between 0 and 1:

```py
import easings

progress = easings.back_in_out(
    progress = 0.5,
    bounce_const = easings.both_back_consts[0.1]
)

print(progress)
```

Easing values with a start and end value using an Easer

```py
import easings

easer = easings.Easer(4, 12)

value = easer.value(easings.poly_in_out, 0.5, 2)

print(value)
```

Using a Bezier curve

```py
import numpy as np

import easings

points = np.array([[0, 0], [1, 2], [3, 3], [4, 0]])

curve = easings.curves.Bezier(points)

print(curve.point(0.4))
```

Using a Catmull-Rom spline

```py
import numpy as np

import easings

points = np.array([[0, 0], [1, 2], [2, 4], [3, 3], [4, 1], [5, 2], [6, 0], [7, -1], [8, 1], [9, 3], [10, 2]])

spline = easings.splines.Catmull(points)

print(spline.point(1.2))
```

## License

CC0 1.0 Universal (CC0 1.0) Public Domain Dedication.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "easings",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "easings easing ease animation interpolation",
    "author": "Sylvie Isla",
    "author_email": "sylvieisla.std@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/55/9b/2eff9b2e044a4feaf84ffcfc0d6157315c20359c10096b845fcd0a9b23d8/easings-3.1.2.tar.gz",
    "platform": null,
    "description": "# Easings\r\n\r\n## Description\r\n\r\nCustomizable Optimized Library for Easing, Interpolation, Curves and Splines for Python.\r\n\r\n## Installation\r\n\r\n```sh\r\npip install easings\r\n```\r\n\r\n## Usage\r\n\r\nEase values between 0 and 1:\r\n\r\n```py\r\nimport easings\r\n\r\nprogress = easings.back_in_out(\r\n    progress = 0.5,\r\n    bounce_const = easings.both_back_consts[0.1]\r\n)\r\n\r\nprint(progress)\r\n```\r\n\r\nEasing values with a start and end value using an Easer\r\n\r\n```py\r\nimport easings\r\n\r\neaser = easings.Easer(4, 12)\r\n\r\nvalue = easer.value(easings.poly_in_out, 0.5, 2)\r\n\r\nprint(value)\r\n```\r\n\r\nUsing a Bezier curve\r\n\r\n```py\r\nimport numpy as np\r\n\r\nimport easings\r\n\r\npoints = np.array([[0, 0], [1, 2], [3, 3], [4, 0]])\r\n\r\ncurve = easings.curves.Bezier(points)\r\n\r\nprint(curve.point(0.4))\r\n```\r\n\r\nUsing a Catmull-Rom spline\r\n\r\n```py\r\nimport numpy as np\r\n\r\nimport easings\r\n\r\npoints = np.array([[0, 0], [1, 2], [2, 4], [3, 3], [4, 1], [5, 2], [6, 0], [7, -1], [8, 1], [9, 3], [10, 2]])\r\n\r\nspline = easings.splines.Catmull(points)\r\n\r\nprint(spline.point(1.2))\r\n```\r\n\r\n## License\r\n\r\nCC0 1.0 Universal (CC0 1.0) Public Domain Dedication.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Customizable Optimized Easing Functions for Python",
    "version": "3.1.2",
    "project_urls": null,
    "split_keywords": [
        "easings",
        "easing",
        "ease",
        "animation",
        "interpolation"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "af6d33bd1fac0fcb6fddd7da3f2782849e8095270e333a05f16924356c2a8438",
                "md5": "89488b9bb04bf762d92571c11ee7e6d4",
                "sha256": "a7ad2d10fbae1cc814a6299d5f45698469b8dd0755940effb1bde7190743334f"
            },
            "downloads": -1,
            "filename": "easings-3.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "89488b9bb04bf762d92571c11ee7e6d4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5726,
            "upload_time": "2025-03-27T07:39:52",
            "upload_time_iso_8601": "2025-03-27T07:39:52.416502Z",
            "url": "https://files.pythonhosted.org/packages/af/6d/33bd1fac0fcb6fddd7da3f2782849e8095270e333a05f16924356c2a8438/easings-3.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "559b2eff9b2e044a4feaf84ffcfc0d6157315c20359c10096b845fcd0a9b23d8",
                "md5": "996758fade542a69e2f3af4ea27e4133",
                "sha256": "9f3fb2b54a4d7ee9055293e5645d145f74294aab7fabc5e38f6079b0269809b6"
            },
            "downloads": -1,
            "filename": "easings-3.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "996758fade542a69e2f3af4ea27e4133",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4776,
            "upload_time": "2025-03-27T07:39:53",
            "upload_time_iso_8601": "2025-03-27T07:39:53.872102Z",
            "url": "https://files.pythonhosted.org/packages/55/9b/2eff9b2e044a4feaf84ffcfc0d6157315c20359c10096b845fcd0a9b23d8/easings-3.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-27 07:39:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "easings"
}
        
Elapsed time: 0.42406s