Table of Contents

Class DesktopPattern

Namespace
SharpConsoleUI.Rendering
Assembly
SharpConsoleUI.dll

A repeating tile pattern for the desktop background. The tile is defined as a 2D grid of characters with optional per-cell colors. The tile repeats across the entire desktop area.

public sealed class DesktopPattern
Inheritance
DesktopPattern
Inherited Members
Extension Methods

Constructors

DesktopPattern(char[,])

Creates a new pattern from a character grid.

public DesktopPattern(char[,] characters)

Parameters

characters char[,]

Row-major character grid. Must be at least 1x1.

Properties

BackgroundColors

Per-cell background colors. Null entries use the base background.

public Color?[,]? BackgroundColors { get; init; }

Property Value

Color?[,]

Characters

The character grid (row-major). Tile dimensions are inferred from this.

public char[,] Characters { get; }

Property Value

char[,]

ForegroundColors

Per-cell foreground colors. Null entries use the base foreground.

public Color?[,]? ForegroundColors { get; init; }

Property Value

Color?[,]

Height

Tile height (rows).

public int Height { get; }

Property Value

int

Width

Tile width (columns).

public int Width { get; }

Property Value

int