TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class ColorScheme in Tinman.AddOns.GUI.Styles

The ColorScheme provides methods and properties for computing various colors for rendering components.

sealed class ColorScheme  

Remarks

A color scheme is defined by four colors: foreground, background, highlight and text color. All other colors are derived from those.

Public / Constants

Default

The default color scheme.

public static readonly field Default
type ColorScheme

Public / Attributes

Background

The background color.

public readonly field Background
type int64

See also:

Style.BackgroundColor

BackgroundLight

A lighter variant of Background.

public readonly field BackgroundLight
type int64

BorderEdge

Color for drawing regular border edges.

public readonly field BorderEdge
type int64

BorderEdgeDark

Color for drawing high contract border edges.

public readonly field BorderEdgeDark
type int64

BorderFill

The color to use for filling the interior of thick borders.

public readonly field BorderFill
type int64

BorderFillLight

A lighter variant of BorderFill.

public readonly field BorderFillLight
type int64

Foreground

The foreground color.

public readonly field Foreground
type int64

See also:

Style.ForegroundColor

ForegroundContrast

A lighter variant of Foreground with high contrast to Background.

public readonly field ForegroundContrast
type int64

Highlight

The highlight color.

public readonly field Highlight
type int64

See also:

Style.HighlightColor

HighlightContrast

A lighter variant of Highlight with high contrast to Background.

public readonly field HighlightContrast
type int64

Text

The text color.

public readonly field Text
type int64

See also:

Style.TextColor

TextFaint

A variant of Text that has low contrast to Background.

public readonly field TextFaint
type int64

TextFaintLight

A variant of Text that has low contrast to BackgroundLight.

public readonly field TextFaintLight
type int64

Public / Methods

DrawString

public static method DrawString (Graphics graphics, PixelFont font, string text, int32 x, int32 y, int64 textColor, int64 backgroundColor, Anchor anchor)
params graphics
  font
  text
  x
  y
  textColor
  backgroundColor
  anchor

DrawSymbol

public static method DrawSymbol (Graphics graphics, Bitmap bitmap, Vec2I v, Anchor anchor, int64 textColor, int64 backgroundColor)
params graphics
  bitmap
  v
  anchor
  textColor
  backgroundColor

public static method DrawSymbol (Graphics graphics, Bitmap bitmap, int32 x, int32 y, Anchor anchor, int64 textColor, int64 backgroundColor)
params graphics
  bitmap
  x
  y
  anchor
  textColor
  backgroundColor

For

public static method For (Component component)
type ColorScheme
params component

public static method For (int64 text, int64 foreground, int64 background, int64 highlight)
type ColorScheme
params text
  foreground
  background
  highlight

Outline

Computes the outline color that should be used to render text.

public static method Outline (int64 textColor, int64 backgroundColor)
type int64
params textColor The text color.
  backgroundColor The background color.
returns The outline color or 0 if no outline is necessary.