IAnimatedConsoleRenderable

Interface

Represents a console renderable that requires periodic animation updates.

Namespace: RazorConsole.Core.Rendering.ComponentMarkup
Assembly: RazorConsole.Core

Definition

public interface IAnimatedConsoleRenderable : IRenderable
Remarks:All animations on screen share one refresh timer that runs at the shortest RefreshInterval among them, so a renderable can be rendered more often than its own interval. It must pick its frame from the current time when it renders (for example DateTime.UtcNow.Ticks / RefreshInterval.Ticks), not from how many times it has been rendered.

Properties

1
NameTypeDescription
Other
RefreshIntervalTimeSpanGets how often the animation's frame changes. The display refreshes at least this often while the renderable is on screen, and possibly more often when a faster animation is shown at the same time.