Skip to content

HAnim is a frame-driven, cross-platform animation framework that separates animation behavior from animation objects | Hanim是一个帧驱动, 跨平台且动画行为与动画对象分离的动画框架 | Animation = HEngine(HAnimate, HObject)

License

Sunrisepeak/Hanim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hanim (Hi Animation / Hello Animation)

Hanim是一个轻量级的动画框架.

Animation = HEngine(HAnimate, HObject)

特性/功能

  • 动画对象和动画行为(分离)设计(也支持耦合模式)
  • 支持立即模式GUI库(opengl/imgui等)
  • 支持保留模式GUI库(Qt/其他)
  • 内置基础缓动曲线并支持自定义扩展
  • Header-Only库, 无三方依赖(需std & C++ >= 17)
  • 支持动画控制,API简单易用

用法/示例

    ImGui::Begin("Hello Hanim");

    HPlayWidget(1, hanim::Loading("Loading", {100, 100}, {200, 30}));

    HPlayWidget(
        2,
        hanim::Loading(
            "Hello Hanim", {100, 150}, {200, 30},
            60, ImVec4(1.f, 0, 0, 0.5f), ImVec4(0, 0.5f, 0, 0.8f)
        )
    );

    ImGui::End();

hanim-loading


文档仓库 | 在线文档

About

HAnim is a frame-driven, cross-platform animation framework that separates animation behavior from animation objects | Hanim是一个帧驱动, 跨平台且动画行为与动画对象分离的动画框架 | Animation = HEngine(HAnimate, HObject)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages