Table of Contents

Class AnimationDefaults

Namespace
SharpConsoleUI.Configuration
Assembly
SharpConsoleUI.dll

Centralized constants for animation timing and limits.

public static class AnimationDefaults
Inheritance
AnimationDefaults
Inherited Members

Fields

DefaultEasingName

Default easing function name (EaseInOut). The actual default is applied via EasingFunctions.EaseInOut.

public const string DefaultEasingName = "EaseInOut"

Field Value

string

DefaultFadeDurationMs

Default duration for fade animations in milliseconds.

public const int DefaultFadeDurationMs = 300

Field Value

int

DefaultFlashPulseDurationMs

Default duration of a single modal flash pulse in milliseconds (fade up + fade down).

public const int DefaultFlashPulseDurationMs = 300

Field Value

int

DefaultSlideDurationMs

Default duration for slide animations in milliseconds.

public const int DefaultSlideDurationMs = 400

Field Value

int

FadeForegroundBlendRatio

Foreground blend ratio for fade animations. Set to 1.0 so foreground fades at the same rate as background for a true fade effect.

public const float FadeForegroundBlendRatio = 1

Field Value

float

FlashForegroundBlendRatio

Foreground blend factor relative to background intensity during flash overlay.

public const float FlashForegroundBlendRatio = 0.5

Field Value

float

FlashIntensityEpsilon

Intensity threshold below which the flash overlay is skipped for performance.

public const float FlashIntensityEpsilon = 0.001

Field Value

float

FlashInterPulseDelayMs

Delay between consecutive flash pulses in milliseconds.

public const int FlashInterPulseDelayMs = 150

Field Value

int

FlashMaxIntensity

Maximum overlay intensity for the modal flash effect (0.0 to 1.0).

public const float FlashMaxIntensity = 0.3

Field Value

float

MaxConcurrentAnimations

Maximum number of concurrent animations allowed.

public const int MaxConcurrentAnimations = 50

Field Value

int

MaxFrameDeltaMs

Maximum delta time per animation frame in milliseconds. Prevents animations from completing instantly when the system was idle and the elapsed time since last render is very large.

public const double MaxFrameDeltaMs = 33

Field Value

double