KiCad PCB EDA Suite
KIGFX::COLOR4D Class Reference

Class COLOR4D is the color representation with 4 components: red, green, blue, alpha. More...

#include <color4d.h>

Public Member Functions

 COLOR4D ()
 
 COLOR4D (double aRed, double aGreen, double aBlue, double aAlpha)
 Constructor. More...
 
 COLOR4D (EDA_COLOR_T aColor)
 Constructor. More...
 
COLOR4DBrighten (double aFactor)
 Function Brighten Makes the color brighter by a given factor. More...
 
COLOR4DDarken (double aFactor)
 Function Darken Makes the color darker by a given factor. More...
 
COLOR4DInvert ()
 Function Invert Makes the color inverted, alpha remains the same. More...
 
COLOR4DSaturate (double aFactor)
 Saturates the color to a given factor (in HSV model) More...
 
COLOR4D Brightened (double aFactor) const
 Function Brightened Returns a color that is brighter by a given factor, without modifying object. More...
 
COLOR4D Darkened (double aFactor) const
 Function Darkened Returns a color that is darker by a given factor, without modifying object. More...
 
COLOR4D WithAlpha (double aAlpha) const
 Function WithAlpha Returns a colour with the same colour, but the given alpha. More...
 
COLOR4D Inverted () const
 Function Inverted Returns an inverted color, alpha remains the same. More...
 
double GetBrightness () const
 Function GetBrightness Returns the brightness value of the color ranged from 0.0 to 1.0. More...
 
void ToHSV (double &aOutHue, double &aOutSaturation, double &aOutValue, bool aAlwaysDefineHue=false) const
 Function ToHSV() Converts current color (stored in RGB) to HSV format. More...
 
void FromHSV (double aInH, double aInS, double aInV)
 Function FromHSV() Changes currently used color to the one given by hue, saturation and value parameters. More...
 

Public Attributes

double r
 Red component. More...
 
double g
 Green component. More...
 
double b
 Blue component. More...
 
double a
 Alpha component. More...
 

Static Public Attributes

static const COLOR4D UNSPECIFIED
 For legacy support; used as a value to indicate color hasn't been set yet. More...
 
static const COLOR4D WHITE
 
static const COLOR4D BLACK
 

Detailed Description

Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.

Definition at line 39 of file color4d.h.

Constructor & Destructor Documentation

KIGFX::COLOR4D::COLOR4D ( )
inline

Definition at line 43 of file color4d.h.

Referenced by Brightened(), Darkened(), Inverted(), and WithAlpha().

43  :
44  r( 0 ), g( 0 ), b( 0 ), a( 1.0 )
45  {
46  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double a
Alpha component.
Definition: color4d.h:294
double r
Red component.
Definition: color4d.h:291
KIGFX::COLOR4D::COLOR4D ( double  aRed,
double  aGreen,
double  aBlue,
double  aAlpha 
)
inline

Constructor.

Parameters
aRedis the red component [0.0 .. 1.0].
aGreenis the green component [0.0 .. 1.0].
aBlueis the blue component [0.0 .. 1.0].
aAlphais the alpha value [0.0 .. 1.0].

Definition at line 56 of file color4d.h.

References a, b, g, and r.

56  :
57  r( aRed ), g( aGreen ), b( aBlue ), a( aAlpha )
58  {
59  assert( r >= 0.0 && r <= 1.0 );
60  assert( g >= 0.0 && g <= 1.0 );
61  assert( b >= 0.0 && b <= 1.0 );
62  assert( a >= 0.0 && a <= 1.0 );
63  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double a
Alpha component.
Definition: color4d.h:294
double r
Red component.
Definition: color4d.h:291
COLOR4D::COLOR4D ( EDA_COLOR_T  aColor)

Constructor.

Parameters
aColoris one of KiCad's palette colors.
See also
EDA_COLOR_T

Definition at line 32 of file color4d.cpp.

References a, b, g, g_ColorRefs, StructColors::m_Blue, StructColors::m_Green, StructColors::m_Red, NBCOLORS, r, and UNSPECIFIED.

33 {
34  if( aColor <= UNSPECIFIED_COLOR || aColor >= NBCOLORS )
35  {
36  *this = COLOR4D::UNSPECIFIED;
37  return;
38  }
39 
40  r = g_ColorRefs[aColor].m_Red / 255.0;
41  g = g_ColorRefs[aColor].m_Green / 255.0;
42  b = g_ColorRefs[aColor].m_Blue / 255.0;
43  a = 1.0;
44 }
unsigned char m_Red
Definition: colors.h:146
unsigned char m_Green
Definition: colors.h:145
double g
Green component.
Definition: color4d.h:292
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
Definition: color4d.h:297
double b
Blue component.
Definition: color4d.h:293
double a
Alpha component.
Definition: color4d.h:294
unsigned char m_Blue
Definition: colors.h:144
const StructColors g_ColorRefs[NBCOLORS]
The predefined colors used in KiCad.
Definition: colors.cpp:37
double r
Red component.
Definition: color4d.h:291
Number of colors.
Definition: colors.h:75

Member Function Documentation

COLOR4D& KIGFX::COLOR4D::Brighten ( double  aFactor)
inline

Function Brighten Makes the color brighter by a given factor.

Parameters
aFactorSpecifies how bright the color should become (valid values: 0.0 .. 1.0).
Returns
COLOR4D& Brightened color.

Definition at line 152 of file color4d.h.

References b, g, and r.

153  {
154  assert( aFactor >= 0.0 && aFactor <= 1.0 );
155 
156  r = r * ( 1.0 - aFactor ) + aFactor;
157  g = g * ( 1.0 - aFactor ) + aFactor;
158  b = b * ( 1.0 - aFactor ) + aFactor;
159 
160  return *this;
161  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double r
Red component.
Definition: color4d.h:291
COLOR4D KIGFX::COLOR4D::Brightened ( double  aFactor) const
inline

Function Brightened Returns a color that is brighter by a given factor, without modifying object.

Parameters
aFactorSpecifies how bright the color should become (valid values: 0.0 .. 1.0).
Returns
COLOR4D Highlighted color.

Definition at line 205 of file color4d.h.

References a, b, COLOR4D(), g, and r.

Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::ImportLegacyColors(), and KIGFX::RENDER_SETTINGS::update().

206  {
207  assert( aFactor >= 0.0 && aFactor <= 1.0 );
208 
209  return COLOR4D( r * ( 1.0 - aFactor ) + aFactor,
210  g * ( 1.0 - aFactor ) + aFactor,
211  b * ( 1.0 - aFactor ) + aFactor,
212  a );
213  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double a
Alpha component.
Definition: color4d.h:294
double r
Red component.
Definition: color4d.h:291
COLOR4D& KIGFX::COLOR4D::Darken ( double  aFactor)
inline

Function Darken Makes the color darker by a given factor.

Parameters
aFactorSpecifies how dark the color should become (valid values: 0.0 .. 1.0).
Returns
COLOR4D& Darkened color.

Definition at line 169 of file color4d.h.

References b, g, and r.

170  {
171  assert( aFactor >= 0.0 && aFactor <= 1.0 );
172 
173  r = r * ( 1.0 - aFactor );
174  g = g * ( 1.0 - aFactor );
175  b = b * ( 1.0 - aFactor );
176 
177  return *this;
178  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double r
Red component.
Definition: color4d.h:291
COLOR4D KIGFX::COLOR4D::Darkened ( double  aFactor) const
inline

Function Darkened Returns a color that is darker by a given factor, without modifying object.

Parameters
aFactorSpecifies how dark the color should become (valid values: 0.0 .. 1.0).
Returns
COLOR4D Darkened color.

Definition at line 221 of file color4d.h.

References a, b, COLOR4D(), g, and r.

Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::ImportLegacyColors(), and KIGFX::RENDER_SETTINGS::update().

222  {
223  assert( aFactor >= 0.0 && aFactor <= 1.0 );
224 
225  return COLOR4D( r * ( 1.0 - aFactor ),
226  g * ( 1.0 - aFactor ),
227  b * ( 1.0 - aFactor ),
228  a );
229  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double a
Alpha component.
Definition: color4d.h:294
double r
Red component.
Definition: color4d.h:291
void COLOR4D::FromHSV ( double  aInH,
double  aInS,
double  aInV 
)

Function FromHSV() Changes currently used color to the one given by hue, saturation and value parameters.

Parameters
aInHis hue component, in degrees.
aInSis saturation component.
aInVis value component.

Definition at line 326 of file color4d.cpp.

References b, g, and r.

Referenced by COLOR4D_PICKER_DLG::createHSVBitmap(), COLOR4D_PICKER_DLG::OnChangeBrightness(), COLOR4D_PICKER_DLG::OnChangeEditHue(), COLOR4D_PICKER_DLG::OnChangeEditSat(), Saturate(), and COLOR4D_PICKER_DLG::setHSvaluesFromCursor().

327 {
328  if( aInS <= 0.0 )
329  {
330  r = aInV;
331  g = aInV;
332  b = aInV;
333  return;
334  }
335 
336  double hh = aInH;
337 
338  while( hh >= 360.0 )
339  hh -= 360.0;
340 
341  /* Hue in degrees (0...360) is coded according to this table
342  * 0 or 360 : red
343  * 60 : yellow
344  * 120 : green
345  * 180 : cyan
346  * 240 : blue
347  * 300 : magenta
348  */
349  hh /= 60.0;
350 
351  int i = (int) hh;
352  double ff = hh - i;
353 
354  double p = aInV * ( 1.0 - aInS );
355  double q = aInV * ( 1.0 - ( aInS * ff ) );
356  double t = aInV * ( 1.0 - ( aInS * ( 1.0 - ff ) ) );
357 
358  switch( i )
359  {
360  case 0:
361  r = aInV;
362  g = t;
363  b = p;
364  break;
365 
366  case 1:
367  r = q;
368  g = aInV;
369  b = p;
370  break;
371 
372  case 2:
373  r = p;
374  g = aInV;
375  b = t;
376  break;
377 
378  case 3:
379  r = p;
380  g = q;
381  b = aInV;
382  break;
383 
384  case 4:
385  r = t;
386  g = p;
387  b = aInV;
388  break;
389 
390  case 5:
391  default:
392  r = aInV;
393  g = p;
394  b = q;
395  break;
396  }
397 }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double r
Red component.
Definition: color4d.h:291
double KIGFX::COLOR4D::GetBrightness ( ) const
inline

Function GetBrightness Returns the brightness value of the color ranged from 0.0 to 1.0.

Returns
The brightness value.

Definition at line 259 of file color4d.h.

References b, g, and r.

Referenced by DrawGraphicHaloText(), KIGFX::PCB_RENDER_SETTINGS::IsBackgroundDark(), and EDA_DRAW_PANEL::ReDraw().

260  {
261  // Weighted W3C formula
262  return r * 0.299 + g * 0.587 + b * 0.117;
263  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double r
Red component.
Definition: color4d.h:291
COLOR4D& KIGFX::COLOR4D::Invert ( )
inline

Function Invert Makes the color inverted, alpha remains the same.

Returns
COLOR4D& Inverted color.

Definition at line 185 of file color4d.h.

References b, g, and r.

186  {
187  r = ( 1.0 - r );
188  g = ( 1.0 - g );
189  b = ( 1.0 - b );
190 
191  return *this;
192  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double r
Red component.
Definition: color4d.h:291
COLOR4D KIGFX::COLOR4D::Inverted ( ) const
inline

Function Inverted Returns an inverted color, alpha remains the same.

Returns
COLOR4D& Inverted color.

Definition at line 249 of file color4d.h.

References a, b, COLOR4D(), g, and r.

Referenced by KIGFX::PCB_RENDER_SETTINGS::ImportLegacyColors().

250  {
251  return COLOR4D( 1.0 - r, 1.0 - g, 1.0 - b, a );
252  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double a
Alpha component.
Definition: color4d.h:294
double r
Red component.
Definition: color4d.h:291
COLOR4D & COLOR4D::Saturate ( double  aFactor)

Saturates the color to a given factor (in HSV model)

Definition at line 400 of file color4d.cpp.

References FromHSV(), and ToHSV().

401 {
402  double h, s, v;
403 
404  ToHSV( h, s, v );
405  FromHSV( h, aFactor, 1.0 );
406 
407  return *this;
408 }
void ToHSV(double &aOutHue, double &aOutSaturation, double &aOutValue, bool aAlwaysDefineHue=false) const
Function ToHSV() Converts current color (stored in RGB) to HSV format.
Definition: color4d.cpp:273
void FromHSV(double aInH, double aInS, double aInV)
Function FromHSV() Changes currently used color to the one given by hue, saturation and value paramet...
Definition: color4d.cpp:326
void COLOR4D::ToHSV ( double &  aOutHue,
double &  aOutSaturation,
double &  aOutValue,
bool  aAlwaysDefineHue = false 
) const

Function ToHSV() Converts current color (stored in RGB) to HSV format.

Parameters
aOutHueis the conversion result for hue component, in degrees 0 ... 360.0
aOutSaturationis the conversion result for saturation component (0 ... 1.0).
aOutValueis conversion result for value component (0 ... 1.0).
aAlwaysDefineHuecontrols the way hue is defined when r = v = b
Note
saturation is set to 0.0 for black color (r = v = b = 0), and if r = v = b, hue is set to 0.0 if aAlwaysDefineHue = true, and set to NAN if aAlwaysDefineHue = false. this option is usefull to convert a 4D color to a legacy color, because Red has hue = 0, therefore aAlwaysDefineHue = false makes difference between Red and Gray colors.

Definition at line 273 of file color4d.cpp.

References b, delta, g, max, min, and r.

Referenced by COLOR4D_PICKER_DLG::buttColorClick(), COLOR4D_PICKER_DLG::COLOR4D_PICKER_DLG(), COLOR4D_PICKER_DLG::onRGBMouseDrag(), Saturate(), and COLOR4D_PICKER_DLG::SetEditVals().

274 {
275  double min, max, delta;
276 
277  min = r < g ? r : g;
278  min = min < b ? min : b;
279 
280  max = r > g ? r : g;
281  max = max > b ? max : b;
282 
283  aOutValue = max; // value
284  delta = max - min;
285 
286  if( max > 0.0 )
287  {
288  aOutSaturation = ( delta / max );
289  }
290  else // for black color (r = g = b = 0 ) saturation is set to 0.
291  {
292  aOutSaturation = 0.0;
293  aOutHue = aAlwaysDefineHue ? 0.0 : NAN;
294  return;
295  }
296 
297  /* Hue in degrees (0...360) is coded according to this table
298  * 0 or 360 : red
299  * 60 : yellow
300  * 120 : green
301  * 180 : cyan
302  * 240 : blue
303  * 300 : magenta
304  */
305  if( delta != 0.0 )
306  {
307  if( r >= max )
308  aOutHue = ( g - b ) / delta; // between yellow & magenta
309  else if( g >= max )
310  aOutHue = 2.0 + ( b - r ) / delta; // between cyan & yellow
311  else
312  aOutHue = 4.0 + ( r - g ) / delta; // between magenta & cyan
313 
314  aOutHue *= 60.0; // degrees
315 
316  if( aOutHue < 0.0 )
317  aOutHue += 360.0;
318  }
319  else // delta = 0 means r = g = b. hue is set to 0.0
320  {
321  aOutHue = aAlwaysDefineHue ? 0.0 : NAN;
322  }
323 }
double g
Green component.
Definition: color4d.h:292
static const int delta[8][2]
Definition: solve.cpp:112
double b
Blue component.
Definition: color4d.h:293
#define max(a, b)
Definition: auxiliary.h:86
double r
Red component.
Definition: color4d.h:291
#define min(a, b)
Definition: auxiliary.h:85
COLOR4D KIGFX::COLOR4D::WithAlpha ( double  aAlpha) const
inline

Function WithAlpha Returns a colour with the same colour, but the given alpha.

Parameters
aAlphaspecifies the alpha of the new color
Returns
COLOR4D color with that alpha

Definition at line 237 of file color4d.h.

References b, COLOR4D(), g, and r.

Referenced by drawLineWithHilight(), and ZONE_CREATE_HELPER::OnFirstPoint().

238  {
239  assert( aAlpha >= 0.0 && aAlpha <= 1.0 );
240 
241  return COLOR4D( r, g, b, aAlpha );
242  }
double g
Green component.
Definition: color4d.h:292
double b
Blue component.
Definition: color4d.h:293
double r
Red component.
Definition: color4d.h:291

Member Data Documentation

double KIGFX::COLOR4D::b

Blue component.

Definition at line 293 of file color4d.h.

Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::blitCursor(), Brighten(), Brightened(), COLOR4D_PICKER_DLG::buttColorClick(), KIGFX::CAIRO_GAL::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::CAIRO_GAL::ClearScreen(), KIGFX::OPENGL_GAL::ClearScreen(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), COLOR4D_PICKER_DLG::createRGBBitmap(), Darken(), Darkened(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::drawBitmapOverbar(), KIGFX::OPENGL_GAL::DrawCircle(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL::drawGridLine(), KIGFX::CAIRO_GAL::DrawGroup(), KIGFX::OPENGL_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::drawPolyline(), KIGFX::OPENGL_GAL::DrawRectangle(), COLOR4D_PICKER_DLG::drawRGBPalette(), KIGFX::CAIRO_GAL::DrawSegment(), KIGFX::OPENGL_GAL::DrawSegment(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), KIGFX::CAIRO_GAL::flushPath(), FromHSV(), GetBrightness(), CINFO3D_VISU::GetColor(), getDXFColorName(), CINFO3D_VISU::GetLayerColor(), Invert(), Inverted(), COLOR4D_PICKER_DLG::OnChangeEditBlue(), COLOR4D_PICKER_DLG::onRGBMouseDrag(), KIGFX::operator==(), PSLIKE_PLOTTER::SetColor(), COLOR4D_PICKER_DLG::SetEditVals(), KIGFX::CAIRO_GAL::SetFillColor(), COLOR4D_PICKER_DLG::setIconColor(), KIGFX::CAIRO_GAL::SetStrokeColor(), KIGFX::CAIRO_GAL::storePath(), ToHSV(), and WithAlpha().

double KIGFX::COLOR4D::g

Green component.

Definition at line 292 of file color4d.h.

Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::blitCursor(), Brighten(), Brightened(), COLOR4D_PICKER_DLG::buttColorClick(), KIGFX::CAIRO_GAL::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::CAIRO_GAL::ClearScreen(), KIGFX::OPENGL_GAL::ClearScreen(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), COLOR4D_PICKER_DLG::createRGBBitmap(), Darken(), Darkened(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::drawBitmapOverbar(), KIGFX::OPENGL_GAL::DrawCircle(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL::drawGridLine(), KIGFX::CAIRO_GAL::DrawGroup(), KIGFX::OPENGL_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::drawPolyline(), KIGFX::OPENGL_GAL::DrawRectangle(), COLOR4D_PICKER_DLG::drawRGBPalette(), KIGFX::CAIRO_GAL::DrawSegment(), KIGFX::OPENGL_GAL::DrawSegment(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), KIGFX::CAIRO_GAL::flushPath(), FromHSV(), GetBrightness(), CINFO3D_VISU::GetColor(), getDXFColorName(), CINFO3D_VISU::GetLayerColor(), Invert(), Inverted(), COLOR4D_PICKER_DLG::OnChangeEditGreen(), COLOR4D_PICKER_DLG::onRGBMouseDrag(), KIGFX::operator==(), PSLIKE_PLOTTER::SetColor(), COLOR4D_PICKER_DLG::SetEditVals(), KIGFX::CAIRO_GAL::SetFillColor(), COLOR4D_PICKER_DLG::setIconColor(), KIGFX::CAIRO_GAL::SetStrokeColor(), KIGFX::CAIRO_GAL::storePath(), ToHSV(), and WithAlpha().

double KIGFX::COLOR4D::r

Red component.

Definition at line 291 of file color4d.h.

Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::blitCursor(), Brighten(), Brightened(), COLOR4D_PICKER_DLG::buttColorClick(), KIGFX::CAIRO_GAL::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::CAIRO_GAL::ClearScreen(), KIGFX::OPENGL_GAL::ClearScreen(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), COLOR4D_PICKER_DLG::createRGBBitmap(), Darken(), Darkened(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::drawBitmapOverbar(), KIGFX::OPENGL_GAL::DrawCircle(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL::drawGridLine(), KIGFX::CAIRO_GAL::DrawGroup(), KIGFX::OPENGL_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::drawPolyline(), KIGFX::OPENGL_GAL::DrawRectangle(), COLOR4D_PICKER_DLG::drawRGBPalette(), KIGFX::CAIRO_GAL::DrawSegment(), KIGFX::OPENGL_GAL::DrawSegment(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), KIGFX::CAIRO_GAL::flushPath(), FromHSV(), GetBrightness(), CINFO3D_VISU::GetColor(), getDXFColorName(), CINFO3D_VISU::GetLayerColor(), Invert(), Inverted(), COLOR4D_PICKER_DLG::OnChangeEditRed(), COLOR4D_PICKER_DLG::onRGBMouseDrag(), KIGFX::operator==(), PSLIKE_PLOTTER::SetColor(), COLOR4D_PICKER_DLG::SetEditVals(), KIGFX::CAIRO_GAL::SetFillColor(), COLOR4D_PICKER_DLG::setIconColor(), KIGFX::CAIRO_GAL::SetStrokeColor(), KIGFX::CAIRO_GAL::storePath(), ToHSV(), and WithAlpha().

return COLOR4D::UNSPECIFIED
static

For legacy support; used as a value to indicate color hasn't been set yet.

Definition at line 297 of file color4d.h.

Referenced by COLOR4D().

const COLOR4D COLOR4D::WHITE
static

Definition at line 300 of file color4d.h.


The documentation for this class was generated from the following files: