Color
:
object
An RGBA color
Method
public
Color
.
Constructor
(
red
,
green
,
blue
,
alpha
=100%)
public
readonly
int
Color
.
A
Returns the Alpha component
public
readonly
Color
Color
.
AddAlpha
(
value
)
Return this color with alpha set
public
readonly
int
Color
.
B
Returns the Blue component
public
static
Color
Color
.
ChartColor
(
index
)
Get a chart color from an index
public
virtual
int
object
.
Compare
(
value
)
Compares this object with another and returns (-1, 0, or 1)
public
readonly
Color
Color
.
Compliment
Returns the RGB compliment
public
static
Color
Color
.
FromCMYKA
(
cyan
,
yellow
,
magenta
,
black
,
alpha
=100%)
Create a color from Cyan(%), Yellow(%), Magenta(%), Black(%)
public
static
Color
Color
.
FromHSLA
(
hue
,
saturation
,
lightness
,
alpha
=100%)
Create a color from Hue(0-360), Saturation(%), Lightness(%), and Alpha(%) values
public
readonly
int
Color
.
G
Returns the Green component
public
virtual
Icon
object
.
GetIcon
Return a icon for this object
public
virtual
object
.
GetLayoutBlock
Return a layout inside a block
public
virtual
object
.
GetLayoutSpan
Return a layout inside a span
public
virtual
object
.
GetLayoutTip
Return a layout for the hint popup
public
virtual
object
.
GetSourceReference
Return a source reference for this object
public
virtual
void
object
.
GetTexSource
(
source
)
LaTeX source code for this object
public
static
Color
Color
.
GrayScale
(
percent
)
Create a gray scale color from a percentage
public
readonly
double
Color
.
H
Returns the Hue component
public
readonly
string
Color
.
HTMLSource
HTML souorce string
public
readonly
double
Color
.
L
Returns the Lightness component
public
readonly
int
Color
.
R
Returns the Red component
public
readonly
double
Color
.
S
Returns the Saturation component
public
readonly
Color
Color
.
Scale
(
value
)
Multiply RGB components by a factor
public
readonly
Color
Color
.
TextCompliment
Returns white or black