Skip to content
ChartForgeX
Class

TerminalStoryAnimationOptions

ChartForgeX.Terminal

Namespace
ChartForgeX.Terminal
Assembly
ChartForgeX.Stories
Modifiers
sealed
Attributes
Fluent

Configures animated raster export for a terminal story.

Inheritance

  • object
  • TerminalStoryAnimationOptions

Usage

Explore 29 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 18

Constructors

public TerminalStoryAnimationOptions() #

Methods

public static TerminalStoryAnimationOptions Create() #

Creates animation options with Discord-friendly defaults.

Properties

public int FramesPerSecond { get; set; } #

Gets or sets the maximum sampling frame rate, from 2 to 30. GIF and APNG round the regular interval up to a whole centisecond.

public bool Loop { get; set; } #

Gets or sets whether the animation repeats.

public double EndHoldSeconds { get; set; } #

Gets or sets the completed-state hold time (0 to 10 seconds) before the animation repeats or ends, measured from the first completed sample.

public int OutputScale { get; set; } #

Gets or sets the raster output density multiplier, from 1 to 4.

public int MaximumFrames { get; set; } #

Gets or sets the frame budget used to bound memory and file size, from 2 to 600.

Extension Methods

public static TerminalStoryAnimationOptions EndHoldSeconds(TerminalStoryAnimationOptions terminalStoryAnimationOptions, double value) #

Sets TerminalStoryAnimationOptions.EndHoldSeconds: Gets or sets the completed-state hold time (0 to 10 seconds) before the animation repeats or ends, measured from the first completed sample.

Parameters

terminalStoryAnimationOptions ChartForgeX.Terminal.TerminalStoryAnimationOptions required
The instance.
value double required
The value.

Returns

TerminalStoryAnimationOptions The same instance.

Examples

// C# initializer or property                                                                 // C# fluent
new global::ChartForgeX.Terminal.TerminalStoryAnimationOptions { EndHoldSeconds = value };    terminalStoryAnimationOptions.EndHoldSeconds(value);
public static TerminalStoryAnimationOptions FramesPerSecond(TerminalStoryAnimationOptions terminalStoryAnimationOptions, int value) #

Sets TerminalStoryAnimationOptions.FramesPerSecond: Gets or sets the maximum sampling frame rate, from 2 to 30. GIF and APNG round the regular interval up to a whole centisecond.

Parameters

terminalStoryAnimationOptions ChartForgeX.Terminal.TerminalStoryAnimationOptions required
The instance.
value int required
The value.

Returns

TerminalStoryAnimationOptions The same instance.

Examples

// C# initializer or property                                                                  // C# fluent
new global::ChartForgeX.Terminal.TerminalStoryAnimationOptions { FramesPerSecond = value };    terminalStoryAnimationOptions.FramesPerSecond(value);
public static TerminalStoryAnimationOptions Loop(TerminalStoryAnimationOptions terminalStoryAnimationOptions, bool value = true) #

Sets TerminalStoryAnimationOptions.Loop: Gets or sets whether the animation repeats.

Parameters

terminalStoryAnimationOptions ChartForgeX.Terminal.TerminalStoryAnimationOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TerminalStoryAnimationOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Terminal.TerminalStoryAnimationOptions { Loop = value };    terminalStoryAnimationOptions.Loop(value);
public static TerminalStoryAnimationOptions MaximumFrames(TerminalStoryAnimationOptions terminalStoryAnimationOptions, int value) #

Sets TerminalStoryAnimationOptions.MaximumFrames: Gets or sets the frame budget used to bound memory and file size, from 2 to 600.

Parameters

terminalStoryAnimationOptions ChartForgeX.Terminal.TerminalStoryAnimationOptions required
The instance.
value int required
The value.

Returns

TerminalStoryAnimationOptions The same instance.

Examples

// C# initializer or property                                                                // C# fluent
new global::ChartForgeX.Terminal.TerminalStoryAnimationOptions { MaximumFrames = value };    terminalStoryAnimationOptions.MaximumFrames(value);
public static TerminalStoryAnimationOptions OutputScale(TerminalStoryAnimationOptions terminalStoryAnimationOptions, int value) #

Sets TerminalStoryAnimationOptions.OutputScale: Gets or sets the raster output density multiplier, from 1 to 4.

Parameters

terminalStoryAnimationOptions ChartForgeX.Terminal.TerminalStoryAnimationOptions required
The instance.
value int required
The value.

Returns

TerminalStoryAnimationOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ChartForgeX.Terminal.TerminalStoryAnimationOptions { OutputScale = value };    terminalStoryAnimationOptions.OutputScale(value);