跳转至

animation_config.h

Configuration parameters for the animation framework. More...

Defines

Name
CFBD_BASEANIMATION_FRAME_CNT
Default number of frames for base animations.
CFBD_BASEANIMATION_DELAY_MS
Default delay per animation frame in milliseconds.

Detailed Description

Configuration parameters for the animation framework.

See:

This header defines compile-time configuration for animation behavior. Adjust these values to tune animation characteristics and visual smoothness for your application.

Macros Documentation

define CFBD_BASEANIMATION_FRAME_CNT

#define CFBD_BASEANIMATION_FRAME_CNT (8)

Default number of frames for base animations.

See: CFBD_InitBaseAnimation()for animation initialization

Note: Individual animations can override this value after initialization.

The default frame count for newly created animations. Typical values:

  • 4-8: Fast transitions (UI feedback)
  • 8-16: Smooth animations (visual effects)
  • 16-32: Slow, cinematic transitions

define CFBD_BASEANIMATION_DELAY_MS

#define CFBD_BASEANIMATION_DELAY_MS (0)

Default delay per animation frame in milliseconds.

Note: Individual animations can override this value after initialization.

Time between animation frames in the default configuration.

  • 0: No delay (frame timing handled externally)
  • 16: ~60 FPS animation speed
  • 33: ~30 FPS animation speed
  • 50-100: Slower transitions

Actual animation duration = frame_count * delay_per_frame

Source code

#pragma once

#define CFBD_BASEANIMATION_FRAME_CNT (8)

#define CFBD_BASEANIMATION_DELAY_MS (0)

Updated on 2026-02-03 at 13:21:55 +0000