The ColorScheme provides methods and properties for computing various colors for rendering components.
sealed class
|
ColorScheme
|
A color scheme is defined by four colors: foreground, background, highlight and text color. All other colors are derived from those.
The default color scheme.
public
static
readonly
field
|
Default
|
||
type
|
ColorScheme
|
The background color.
public
readonly
field
|
Background
|
||
type
|
int64
|
See also:
Style.BackgroundColorA lighter variant of Background.
public
readonly
field
|
BackgroundLight
|
||
type
|
int64
|
Color for drawing regular border edges.
public
readonly
field
|
BorderEdge
|
||
type
|
int64
|
Color for drawing high contract border edges.
public
readonly
field
|
BorderEdgeDark
|
||
type
|
int64
|
The color to use for filling the interior of thick borders.
public
readonly
field
|
BorderFill
|
||
type
|
int64
|
A lighter variant of BorderFill.
public
readonly
field
|
BorderFillLight
|
||
type
|
int64
|
The foreground color.
public
readonly
field
|
Foreground
|
||
type
|
int64
|
See also:
Style.ForegroundColorA lighter variant of Foreground with high contrast to Background.
public
readonly
field
|
ForegroundContrast
|
||
type
|
int64
|
The highlight color.
public
readonly
field
|
Highlight
|
||
type
|
int64
|
See also:
Style.HighlightColorA lighter variant of Highlight with high contrast to Background.
public
readonly
field
|
HighlightContrast
|
||
type
|
int64
|
The text color.
public
readonly
field
|
Text
|
||
type
|
int64
|
See also:
Style.TextColorA variant of Text that has low contrast to Background.
public
readonly
field
|
TextFaint
|
||
type
|
int64
|
A variant of Text that has low contrast to BackgroundLight.
public
readonly
field
|
TextFaintLight
|
||
type
|
int64
|
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
|
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
|
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
|
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. |