Twell 是一个微小、可嵌入、零分配的物理引擎,专为可中断的 Apple 风格 UI 动画设计,以单头文件 C 库形式提供,并附带 Python 绑定。

Stars

17

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-28

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它通过加性状态机和解析弹簧动力学,将 CoreAnimation 般的动画能力带到任何 UI 框架(如 Raylib、LVGL、Pygame)中,同时保证零运行时分配和精确闭式解。

适合谁使用

  • 桌面 GUI 框架开发者
  • 移动应用开发者
  • 嵌入式系统工程师
  • 游戏引擎 UI 程序员

典型使用场景

  • 流畅、可中断的 UI 过渡(菜单开合、按钮动画)
  • 带有橡皮筋效果和动量传递的可滚动列表
  • 运动属性耦合(滚动驱动缩放、模糊等)
  • 3D 变换动画(兼容 CATransform3D)

项目优势

  • 零分配设计,使用用户提供的内存区块
  • 解析弹簧内核避免数值漂移和时间步长不稳定性
  • 加性状态机实现中途重定向时无缝衔接,保留速度
  • 提供 Python 绑定,便于快速原型开发

使用前须知

  • 需要手动管理预分配的内存区块
  • 仅支持弹簧和衰减动力学,不包含刚体或碰撞物理
  • 属于小众库,社区采用较少,文档仍在完善中

README 快速开始

Quick start

项目描述

A tiny physics-aware animation engine for remarkably fluid GUIs. Written in single-header C

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

makecindy
精选
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI 与机器学习大语言模型
958
uzairansaruzi
精选
uzairansaruzi GitHub avatar

hermex

Hermex is a native SwiftUI iPhone app that lets you control a self-hosted Hermes AI agent directly from your phone, with no subscriptions, tracking, or third-party relay.

AI 与机器学习大语言模型
941
Krishnagangwal
精选
Krishnagangwal GitHub avatar

CS-Fundamentals

A curated collection of Computer Science fundamentals (PDFs, notes, cheatsheets, interview question banks) for placement preparation, covering seven core subjects plus general resources.

数据与数据库数据库与存储
2,326