Skip to content

ExtendedLib_SurfaceExtensions Class

Extensions for the IScreenSurface type

C#
public static class ExtendedLib_SurfaceExtensions

Inheritance object

PrintFadingText(IScreenSurface, string, Point, TimeSpan, ICellEffect?)

Section titled “PrintFadingText(IScreenSurface, string, Point, TimeSpan, ICellEffect?)”

Prints text that blinks out the characters each after the specified time, using the default foreground and background colors of the surface.

C#
public static void PrintFadingText(this IScreenSurface surfaceObject, string text, Point position, TimeSpan time, ICellEffect? effect = null)

surfaceObject IScreenSurface
The surface to draw the text on.

text string
The text to print.

position SadRogue.Primitives.Point
The position where to print the text.

time TimeSpan
The time each glyph (one after the other) takes to print then fade.

effect ICellEffect
Optional effect to use. If null is passed, uses an instant fade.

PrintFadingText(IScreenSurface, ColoredString, Point, TimeSpan, ICellEffect?)

Section titled “PrintFadingText(IScreenSurface, ColoredString, Point, TimeSpan, ICellEffect?)”
C#
public static void PrintFadingText(this IScreenSurface surfaceObject, ColoredString text, Point position, TimeSpan time, ICellEffect? effect = null)

surfaceObject IScreenSurface
The surface to draw the text on.

text ColoredString
The text to print.

position SadRogue.Primitives.Point
The position where to print the text.

time TimeSpan
The time each glyph (one after the other) takes to print then fade.

effect ICellEffect
Optional effect to use. If null is passed, uses an instant fade.