MarkdownPalette

Ecng.Markdown

Decides what colour a card's text has to be to be readable on the background it landed on.

Propiedades

OnDark
public static ValueTuple<byte, byte, byte> OnDark { get; }
value = MarkdownPalette.OnDark

Text on a dark background - the warm off-white a page uses rather than pure white, which glares.

OnLight
public static ValueTuple<byte, byte, byte> OnLight { get; }
value = MarkdownPalette.OnLight

Text on a light background.

Métodos

IsDark
public static bool IsDark(byte r, byte g, byte b)
result = MarkdownPalette.IsDark(r, g, b)

Whether a background of this colour needs light text.

r
Red.
g
Green.
b
Blue.

Devuelve: when the background is dark.

TextFor
public static ValueTuple<byte, byte, byte> TextFor(byte r, byte g, byte b)
result = MarkdownPalette.TextFor(r, g, b)

The text colour for a background of this colour.

r
Red.
g
Green.
b
Blue.

Devuelve: Colour the prose is set in.