{"id":15104126,"url":"https://github.com/naliferopoulos/tw33n","last_synced_at":"2026-02-13T08:06:27.833Z","repository":{"id":97173961,"uuid":"102887950","full_name":"naliferopoulos/tw33n","owner":"naliferopoulos","description":"Tweening library for Lua","archived":false,"fork":false,"pushed_at":"2018-10-05T11:56:08.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-05T12:30:22.402Z","etag":null,"topics":["animation","love-game-engine","love2d","love2d-framework","lua","tween"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naliferopoulos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-08T17:36:29.000Z","updated_at":"2018-10-05T11:56:09.000Z","dependencies_parsed_at":"2023-05-27T08:01:14.622Z","dependency_job_id":null,"html_url":"https://github.com/naliferopoulos/tw33n","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"794f5b3c229e3f6fc5cf9fb072d93a9ea39236c2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/naliferopoulos/tw33n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naliferopoulos%2Ftw33n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naliferopoulos%2Ftw33n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naliferopoulos%2Ftw33n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naliferopoulos%2Ftw33n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naliferopoulos","download_url":"https://codeload.github.com/naliferopoulos/tw33n/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naliferopoulos%2Ftw33n/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263795011,"owners_count":23512621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","love-game-engine","love2d","love2d-framework","lua","tween"],"created_at":"2024-09-25T20:00:34.835Z","updated_at":"2025-09-24T16:40:47.656Z","avatar_url":"https://github.com/naliferopoulos.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tw33n - Tweening in lua made easy\n\n## What is tweening?\n**Tweening** is the process of interpolating a value between a starting and an ending constant during a given time.\n\n## But why?\nTweening can be used for animating values over time. It is widely used in game development and web design for animation.\n\n## Yes, but does it LÖVE?\nOh, it does LÖVE. You can find a LÖVE demo in *main.lua* displaying the process of creating tw33ns.\n\n## Why tw33n and not some other library?\nTw33n is super light-weight, has a tiny performance and memory footprint and is less than a hundred lines of code fitting in a single file. It does not make assumptions of your programming style and can be used with any other Lua framework.\n\n## How do I tw33n?\nThe whole tw33n library runs with a single call to **tw33n.update(dt)**, which maintains your active tw33ns and animates their values accordingly.\n\nCreating a tw33n is as simple as:\n```lua\ntw33n.create(\"xPosition\", 0, 100, 10, easeIn)\n```\nYou need to specify a name for the tw33n, a starting and ending position, a duration in seconds and an easing function.\n\nAfter that, the value of a tw33n can be retrieved as follows:\n```lua\ntw33n.get(\"xPosition\")\n```\nRequesting a value for a non existent tw33n returns *nil*.\n\n## Which easing functions exist?\nAt the time being the existing functions are:\n  * Linear - ratio\n  * Ease In - ratio * ratio\n  * Ease Out - ratio * (2 - ratio)\n\n## Can I implement my own?\nSure thing! You just need to specify a function when creating a tw33n. The function needs to accept a number argument and also return a number.\n```lua\nfunction MyEaseIn(r)\n  return r * r * r\nend\n\ntw33n.create(\"myTw33n\", 0 , 100, 10, MyEaseIn)\n```\n\n### Made by Nick Aliferopoulos with Lua and complex math.\n### Special thanks to recursor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaliferopoulos%2Ftw33n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaliferopoulos%2Ftw33n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaliferopoulos%2Ftw33n/lists"}