IGLib  1.5
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
IG.Lib.color Struct Reference

Extended color representation. Stores RGB components and opacity as double numbers ranging fom 0 to 1. Implicit conversions to and from System.Drawing.Color and form System.Drawing.KnownColor are provided. More...

Public Member Functions

 color (double r, double g, double b, double opacity)
 Creates a new color with specified red, green and blue components and opacity. More...
 
 color (double r, double g, double b)
 Creates a new color with specified red, green and blue components. Opacity is set to 1. More...
 
 color (System.Drawing.Color color)
 Creates a new color that corresponds (as closely as possible) to the specified color. More...
 
 color (System.Drawing.KnownColor knownColor)
 Creates a new color that corresponds to the specified known (system) color enumerated by the System.Drawing.KnownColor enumerator, such as KnownColor.Menu or KnownColor.WindowFrame. More...
 
 color (color color)
 Creates a new color that corresponds to the specified color. More...
 
 color (string name)
 Creates a new color that corresponds to the specified color name (e.g. "white", "blue", etc.). More...
 
double ConvertComponent (int component)
 
color Scale (color[] colors, double minValue, double maxValue, double value)
 Returns a color corresponding to the specified value (within the specified range) where color scale begins with the first specified color (at the lower bound of the range) and smoothly changes through other colors up to the last specified color (at the higher bound of the range). More...
 

Static Public Member Functions

static implicit operator System.Drawing.Color (color col)
 Converts color to standard System.Drawing.Color More...
 
static implicit operator color (System.Drawing.Color col)
 Converts standard color representation System.Drawing.Color to extended representation color. More...
 
static implicit operator color (System.Drawing.KnownColor knownColorEnum)
 Converts the System.Drawing.KnownColor enumerator to extended representation Color. More...
 
static color Average (params color[] colors)
 Returns average of the specified colors. More...
 
static color Average (bool clipComponents, params color[] colors)
 Returns average of the specified colors. More...
 
static color Mixture (double weight1, color color1, double weight2, color color2)
 Returns additive mixture (linear combination) of two colors. More...
 
static color Mixture (bool clipComponents, double weight1, color color1, double weight2, color color2)
 Returns additive mixture (linear combination) of two colors. More...
 
static color Mixture (double[] weights, color[] colors)
 Returns additive mixture (linear combination) of the specified colors. More...
 
static color Mixture (bool clipComponents, double[] weights, color[] colors)
 Returns additive mixture (linear combination) of the specified colors. More...
 
static color Scale (color col1, color col2, double minValue, double maxValue, double value)
 Returns a color corresponding to the specified value (from the specified range) where color scale begins with the first specified color (lowest value) and smoothly changes to the second specified color (highest value). More...
 
static color Scale (color col1, color col2, double value)
 Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with the first specified color (at 0) and smoothly changes to the second specified color (at 1). More...
 
static color Scale (color[] colors, double value)
 Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with the first specified color (at 0) and smoothly changes through other colors up to the last specified color (at 1). More...
 
static color ScaleGray (double minValue, double maxValue, double value)
 Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to white. More...
 
static color ScaleGray (double value)
 Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to white. More...
 
static color ScaleRed (double minValue, double maxValue, double value)
 Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to red. More...
 
static color ScaleRed (double value)
 Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to red. More...
 
static color ScaleGreen (double minValue, double maxValue, double value)
 Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to green. More...
 
static color ScaleGreen (double value)
 Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to green. More...
 
static color ScaleBlue (double minValue, double maxValue, double value)
 Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to blue. More...
 
static color ScaleBlue (double value)
 Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to blue. More...
 
static color ScaleYellow (double minValue, double maxValue, double value)
 Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to blue. More...
 
static color ScaleYellow (double value)
 Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to blue. More...
 
static color ScaleBlueRedYellow (double minValue, double maxValue, double value)
 Returns a color corresponding to the specified value (from the specified range) where color scale begins with blue, then changes to red and finally to yellow. More...
 
static color ScaleBlueRedYellow (double value)
 Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with blue, then changes to red and finally to yellow. More...
 

Public Attributes

double _G
 
double _B
 
double _opacity
 
const int MaxIntComponent = 255
 Maximal integer component of the standard System.Drawing.Color struct. More...
 
const double MaxIntComponentD = MaxIntComponent
 Maximal component of the standard System.Drawing.Color struct as double. More...
 

Properties

double R [get, set]
 Red component of the color (range from 0 to 1). More...
 
double G [get, set]
 Green component of the color (range from 0 to 1). More...
 
double B [get, set]
 Blue component of the color (range from 0 to 1). More...
 
double Opacity [get, set]
 Opacity of the color (range from 0 - completely transparent - to 1 - completely opaque). More...
 
int IntR [get, set]
 Gets or sets the red RGB component as integer in the range 0 to 255. Getter clips the returned value if it would exceed the range. Setter does not perform clipping. More...
 
int IntG [get, set]
 Gets or sets the green RGB component as integer in the range 0 to 255. Getter clips the returned value if it would exceed the range. Setter does not perform clipping. More...
 
int IntB [get, set]
 Gets or sets the blue RGB component as integer in the range 0 to 255. Getter clips the returned value if it would exceed the range. Setter does not perform clipping. More...
 
int IntOpacity [get, set]
 Gets or sets the Opacity as integer in the range 0 to 255. Getter clips the returned value if it would exceed the range. Setter does not perform clipping. More...
 
float FloatR [get]
 Gets the red RGB component of the current color as float number in the range 0 to 1. No clipping is performed. More...
 
float FloatG [get]
 Gets the green RGB component of the current color as float number in the range 0 to 1. No clipping is performed. More...
 
float FloatB [get]
 Gets the blue RGB component of the current color as float number in the range 0 to 1. No clipping is performed. More...
 
float FloatOpacity [get]
 Gets the opacity of the current color as float number in the range 0 to 1. No clipping is performed. More...
 
double Hue [get]
 Gets the hue-saturation-brightnes (HSB) value for hue of the current color (in the range 0 to 1). More...
 
double Saturation [get]
 Gets the hue-saturation-brightnes (HSB) value for hue of the current color (in the range 0 to 1). More...
 
double Brightness [get]
 Gets the hue-saturation-brightnes (HSB) value for brightness of the current color (in the range 0 to 1). More...
 

Private Attributes

double _R
 

Detailed Description

Extended color representation. Stores RGB components and opacity as double numbers ranging fom 0 to 1. Implicit conversions to and from System.Drawing.Color and form System.Drawing.KnownColor are provided.

$A Igor xx;

Constructor & Destructor Documentation

IG.Lib.color.color ( double  r,
double  g,
double  b,
double  opacity 
)
inline

Creates a new color with specified red, green and blue components and opacity.

Parameters
rRed component of the created color (range 0 to 1).
gGreen component of the created color (range 0 to 1).
bBlue component of the created color (range 0 to 1).
opacityOpacity of the created color (range 0 - completely transparent, 1 - completely opaque).
IG.Lib.color.color ( double  r,
double  g,
double  b 
)
inline

Creates a new color with specified red, green and blue components. Opacity is set to 1.

Parameters
rRed component of the created color (range 0 to 1).
gGreen component of the created color (range 0 to 1).
bBlue component of the created color (range 0 to 1).
IG.Lib.color.color ( System.Drawing.Color  color)
inline

Creates a new color that corresponds (as closely as possible) to the specified color.

Parameters
colorColor that is copied to the created color.

References IG.Lib.color.B, IG.Lib.color.G, and IG.Lib.color.R.

IG.Lib.color.color ( System.Drawing.KnownColor  knownColor)
inline

Creates a new color that corresponds to the specified known (system) color enumerated by the System.Drawing.KnownColor enumerator, such as KnownColor.Menu or KnownColor.WindowFrame.

Parameters
knownColorColor name.
IG.Lib.color.color ( color  color)
inline

Creates a new color that corresponds to the specified color.

Parameters
colorColor that is copied to the created color.

References IG.Lib.color.B, IG.Lib.color.G, IG.Lib.color.Opacity, and IG.Lib.color.R.

IG.Lib.color.color ( string  name)
inline

Creates a new color that corresponds to the specified color name (e.g. "white", "blue", etc.).

Parameters
nameColor name.

Member Function Documentation

double IG.Lib.color.ConvertComponent ( int  component)
inline
static implicit IG.Lib.color.operator System.Drawing.Color ( color  col)
inlinestatic

Converts color to standard System.Drawing.Color

Parameters
colColor to be converted.
Returns
System.Drawing.Color value corresponding to the specified color.

References IG.Lib.color.B, IG.Lib.color.G, IG.Lib.color.Opacity, and IG.Lib.color.R.

static implicit IG.Lib.color.operator color ( System.Drawing.Color  col)
inlinestatic

Converts standard color representation System.Drawing.Color to extended representation color.

Parameters
colColor to be converted.
Returns
color value corresponding to the specified color.
static implicit IG.Lib.color.operator color ( System.Drawing.KnownColor  knownColorEnum)
inlinestatic

Converts the System.Drawing.KnownColor enumerator to extended representation Color.

Parameters
knownColorEnumValue that is converted.
Returns
Color value corresponding to the specified color.
static color IG.Lib.color.Average ( params color[]  colors)
inlinestatic

Returns average of the specified colors.

The calculated color components are clipped to their prescribed range.

Parameters
colorsColors to be averaged.
Returns
An average color whose components are averages over RGB components of all specified colors.

Referenced by IG.Gr3d.TestVtkGraphicBase.ExampleCellsGridContours(), and IG.Gr3d.TestVtkGraphicBase.ExampleCellsGridEfficient().

static color IG.Lib.color.Average ( bool  clipComponents,
params color[]  colors 
)
inlinestatic

Returns average of the specified colors.

Depending on the specified flag, clipping of calculated color components to the prescribed range is performed or not.

Parameters
clipComponentsWhether the resulting color components are clipped to the prescribed range or not.
colorsColors to be averaged.
Returns
An average color whose components are averages over components of all specified colors.

References IG.Lib.color.B, IG.Lib.color.G, IG.Lib.color.Opacity, and IG.Lib.color.R.

static color IG.Lib.color.Mixture ( double  weight1,
color  color1,
double  weight2,
color  color2 
)
inlinestatic

Returns additive mixture (linear combination) of two colors.

The calculated color components are clipped to their prescribed range.

The sum of weights will usually be normalized 1, but this is not necessary. The method itself does not provide normalization.

Parameters
weight1Weighting factor for the first color.
color1The first color to be mixed.
weight2Weighting factor for the second color.
color2The second color to be mixed.
Returns
A mixed color whose components are linear combinations of RGB components of the specified two colors.

Referenced by IG.Lib.ColorScale.GetContinuousReferenceColor().

static color IG.Lib.color.Mixture ( bool  clipComponents,
double  weight1,
color  color1,
double  weight2,
color  color2 
)
inlinestatic

Returns additive mixture (linear combination) of two colors.

Depending on the specified flag, clipping of calculated color components to the prescribed range is performed or not.

The sum of weights will usually be normalized 1, but this is not necessary. The method itself does not provide normalization.

Parameters
clipComponentsWhether the resulting color components are clipped to the prescribed range or not.
weight1Weighting factor for the first color.
color1The first color to be mixed.
weight2Weighting factor for the second color.
color2The second color to be mixed.
Returns
A mixed color whose components are linear combinations of RGB components of the specified two colors.

References IG.Lib.color.B, IG.Lib.color.G, IG.Lib.color.Opacity, and IG.Lib.color.R.

static color IG.Lib.color.Mixture ( double[]  weights,
color[]  colors 
)
inlinestatic

Returns additive mixture (linear combination) of the specified colors.

The calculated color components are clipped to their prescribed range.

The sum of specified weights will usually be normalized 1, but this is not necessary. The method itself does not provide normalization.

Parameters
weightsWeights vorresponding to colors that are mixed. Usually the sum of weights will be 1.
colorsColors to be additively mixed.
Returns
A mixed color whose components are linear combinations of RGB components of the specified colors.
static color IG.Lib.color.Mixture ( bool  clipComponents,
double[]  weights,
color[]  colors 
)
inlinestatic

Returns additive mixture (linear combination) of the specified colors.

Depending on the specified flag, clipping of calculated color components to the prescribed range is performed or not.

The sum of specified weights will usually be normalized 1, but this is not necessary. The method itself does not provide normalization.

Parameters
clipComponentsWhether the resulting color components are clipped to the prescribed range or not.
weightsWeights vorresponding to colors that are mixed. Usually the sum of weights will be 1.
colorsColors to be additively mixed.
Returns
A mixed color whose components are linear combinations of RGB components of the specified colors.

References IG.Lib.color.B, IG.Lib.color.G, IG.Lib.color.Opacity, and IG.Lib.color.R.

static color IG.Lib.color.Scale ( color  col1,
color  col2,
double  minValue,
double  maxValue,
double  value 
)
inlinestatic

Returns a color corresponding to the specified value (from the specified range) where color scale begins with the first specified color (lowest value) and smoothly changes to the second specified color (highest value).

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
col1Collor corresponding to the lowest value of the scale.
col2Collor corresponding to the highest value of the scale.
minValueLowest value for the color.
maxValueHighest value for the color.
valueValue for which the corresponding color is returned.

Referenced by IG.Lib.ColorScale.GetContinuousReferenceColor().

static color IG.Lib.color.Scale ( color  col1,
color  col2,
double  value 
)
inlinestatic

Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with the first specified color (at 0) and smoothly changes to the second specified color (at 1).

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
col1Color corresponding to the lowest value of the scale.
col2Color corresponding to the highest value of the scale.
valueValue for which the corresponding color is returned. Should be between 0 or 1.

References IG.Lib.color.B, IG.Lib.color.G, IG.Lib.color.Opacity, and IG.Lib.color.R.

color IG.Lib.color.Scale ( color[]  colors,
double  minValue,
double  maxValue,
double  value 
)
inline

Returns a color corresponding to the specified value (within the specified range) where color scale begins with the first specified color (at the lower bound of the range) and smoothly changes through other colors up to the last specified color (at the higher bound of the range).

If the value is out of range then color for lower or upper end of scale is returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
colorsTable of colors that are used in color scale. The first color of the table corresponds to the lower bound of the range, and the last one corresponds to the upper bound of the range. Colors between correspond to equally spaced values between, and colors between these values continuously change between two neighboring colors from the table.
minValueLower bound of the range of values for which colors are assigned.
maxValueUpper bound of the range of values for which colors are assigned.
valueValue for which the corresponding color is returned. Should be between 0 or 1.
static color IG.Lib.color.Scale ( color[]  colors,
double  value 
)
inlinestatic

Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with the first specified color (at 0) and smoothly changes through other colors up to the last specified color (at 1).

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
colorsTable of colors that are used in color scale. The first color of the table corresponds to the lower bound of the range, and the last one corresponds to the upper bound of the range. Colors between correspond to equally spaced values between, and colors between these values continuously change between two neighboring colors from the table.
valueValue for which the corresponding color is returned. Should be between 0 or 1.

References IG.Lib.color.B, IG.Lib.color.G, IG.Lib.color.Opacity, and IG.Lib.color.R.

static color IG.Lib.color.ScaleGray ( double  minValue,
double  maxValue,
double  value 
)
inlinestatic

Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to white.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether the value is smaller than the lower bound or larger than the upper bound.

Parameters
minValueMinimal value of the scale.
maxValueMaximal value of the scale.
valueValue for which the corresponding color is returned.
static color IG.Lib.color.ScaleGray ( double  value)
inlinestatic

Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to white.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
valueValue for which the corresponding color is returned. Range of the scale is between 0 or 1.
static color IG.Lib.color.ScaleRed ( double  minValue,
double  maxValue,
double  value 
)
inlinestatic

Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to red.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether the value is smaller than the lower bound or larger than the upper bound.

Parameters
minValueMinimal value of the scale.
maxValueMaximal value of the scale.
valueValue for which the corresponding color is returned.
static color IG.Lib.color.ScaleRed ( double  value)
inlinestatic

Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to red.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
valueValue for which the corresponding color is returned. Range of the scale is between 0 or 1.
static color IG.Lib.color.ScaleGreen ( double  minValue,
double  maxValue,
double  value 
)
inlinestatic

Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to green.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether the value is smaller than the lower bound or larger than the upper bound.

Parameters
minValueMinimal value of the scale.
maxValueMaximal value of the scale.
valueValue for which the corresponding color is returned.
static color IG.Lib.color.ScaleGreen ( double  value)
inlinestatic

Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to green.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
valueValue for which the corresponding color is returned. Range of the scale is between 0 or 1.
static color IG.Lib.color.ScaleBlue ( double  minValue,
double  maxValue,
double  value 
)
inlinestatic

Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to blue.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether the value is smaller than the lower bound or larger than the upper bound.

Parameters
minValueMinimal value of the scale.
maxValueMaximal value of the scale.
valueValue for which the corresponding color is returned.
static color IG.Lib.color.ScaleBlue ( double  value)
inlinestatic

Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to blue.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
valueValue for which the corresponding color is returned. Range of the scale is between 0 or 1.
static color IG.Lib.color.ScaleYellow ( double  minValue,
double  maxValue,
double  value 
)
inlinestatic

Returns a color corresponding to the specified value (from the specified range) where color scale begins with black and smoothly changes to blue.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether the value is smaller than the lower bound or larger than the upper bound.

Parameters
minValueMinimal value of the scale.
maxValueMaximal value of the scale.
valueValue for which the corresponding color is returned.
static color IG.Lib.color.ScaleYellow ( double  value)
inlinestatic

Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with black and smoothly changes to blue.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
valueValue for which the corresponding color is returned. Range of the scale is between 0 or 1.
static color IG.Lib.color.ScaleBlueRedYellow ( double  minValue,
double  maxValue,
double  value 
)
inlinestatic

Returns a color corresponding to the specified value (from the specified range) where color scale begins with blue, then changes to red and finally to yellow.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
minValueMinimal value of the scale.
maxValueMaximal value of the scale.
valueValue for which the corresponding color is returned.
static color IG.Lib.color.ScaleBlueRedYellow ( double  value)
inlinestatic

Returns a color corresponding to the specified value (ranging from 0 to 1) where color scale begins with blue, then changes to red and finally to yellow.

If the value is out of range then colors for lower or upper end of scale are returned, dependent on whether value is smaller than the lower bound or larger than the upper bound.

Parameters
valueValue for which the corresponding color is returned. Range of the scale is between 0 or 1.

Member Data Documentation

double IG.Lib.color._R
private
double IG.Lib.color._G
double IG.Lib.color._B
double IG.Lib.color._opacity
const int IG.Lib.color.MaxIntComponent = 255

Maximal integer component of the standard System.Drawing.Color struct.

const double IG.Lib.color.MaxIntComponentD = MaxIntComponent

Maximal component of the standard System.Drawing.Color struct as double.

Property Documentation

int IG.Lib.color.IntR
getset

Gets or sets the red RGB component as integer in the range 0 to 255. Getter clips the returned value if it would exceed the range. Setter does not perform clipping.

Referenced by IG.Gr3d.VtkCurvePlot.Create(), IG.Gr3d.VtkSurfacePlot.Create(), IG.Gr3d.TestVtkGraphicBase.ExampleCellsGridContours(), IG.Gr3d.TestVtkGraphicBase.ExampleCellsGridEfficient(), and IG.Gr3d.TestVtkGraphicBase.ExampleStructuredGrid().

int IG.Lib.color.IntG
getset

Gets or sets the green RGB component as integer in the range 0 to 255. Getter clips the returned value if it would exceed the range. Setter does not perform clipping.

Referenced by IG.Gr3d.VtkCurvePlot.Create(), IG.Gr3d.VtkSurfacePlot.Create(), IG.Gr3d.TestVtkGraphicBase.ExampleCellsGridContours(), IG.Gr3d.TestVtkGraphicBase.ExampleCellsGridEfficient(), and IG.Gr3d.TestVtkGraphicBase.ExampleStructuredGrid().

int IG.Lib.color.IntB
getset

Gets or sets the blue RGB component as integer in the range 0 to 255. Getter clips the returned value if it would exceed the range. Setter does not perform clipping.

Referenced by IG.Gr3d.VtkCurvePlot.Create(), IG.Gr3d.VtkSurfacePlot.Create(), IG.Gr3d.TestVtkGraphicBase.ExampleCellsGridContours(), IG.Gr3d.TestVtkGraphicBase.ExampleCellsGridEfficient(), and IG.Gr3d.TestVtkGraphicBase.ExampleStructuredGrid().

int IG.Lib.color.IntOpacity
getset

Gets or sets the Opacity as integer in the range 0 to 255. Getter clips the returned value if it would exceed the range. Setter does not perform clipping.

float IG.Lib.color.FloatR
get

Gets the red RGB component of the current color as float number in the range 0 to 1. No clipping is performed.

float IG.Lib.color.FloatG
get

Gets the green RGB component of the current color as float number in the range 0 to 1. No clipping is performed.

float IG.Lib.color.FloatB
get

Gets the blue RGB component of the current color as float number in the range 0 to 1. No clipping is performed.

float IG.Lib.color.FloatOpacity
get

Gets the opacity of the current color as float number in the range 0 to 1. No clipping is performed.

double IG.Lib.color.Hue
get

Gets the hue-saturation-brightnes (HSB) value for hue of the current color (in the range 0 to 1).

double IG.Lib.color.Saturation
get

Gets the hue-saturation-brightnes (HSB) value for hue of the current color (in the range 0 to 1).

double IG.Lib.color.Brightness
get

Gets the hue-saturation-brightnes (HSB) value for brightness of the current color (in the range 0 to 1).


The documentation for this struct was generated from the following file: