Crate egui_text_animation

Source
Expand description

egui-text-animation provides simple text animation utilities for the egui library.

This library offers the TextAnimator struct to create various text animations. It’s designed to be easy to integrate into your existing egui applications. The core of the library is the TextAnimator struct, which manages the state of the animation, and the AnimationType enum, which determines the type of animation to perform.

§Features

§Animation Types

The AnimationType enum provides the following animation types:

§Notes

  • The unstable_dt value from ctx.input(|i| i.unstable_dt) is used for frame-independent animation timing. This ensures the animation runs at the correct speed regardless of the application’s frame rate.
  • It’s crucial to call ctx.request_repaint() during the animation to ensure that egui re-renders the UI, thus updating the animation.

Structs§

TextAnimator
A struct for creating and managing text animations.

Enums§

AnimationType
Enum representing the available animation types.