| 
    KiCad PCB EDA Suite
    
   | 
 
A 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) | |
| COLOR4D (EDA_COLOR_T aColor) | |
| COLOR4D & | FromCSSRGBA (int aRed, int aGreen, int aBlue, double aAlpha=1.0) | 
| Initialize the color from a RGBA value with 0-255 red/green/blue and 0-1 alpha.   | |
| COLOR4D (const wxString &aColorStr) | |
| Defines a color from a CSS or HTML-type string.   | |
| COLOR4D (const wxColour &aColor) | |
| bool | SetFromWxString (const wxString &aColorString) | 
| Set color values by parsing a string using wxColour::Set().   | |
| wxString | ToCSSString () const | 
| bool | SetFromHexString (const wxString &aColorString) | 
| wxString | ToHexString () const | 
| wxColour | ToColour () const | 
| COLOR4D | LegacyMix (const COLOR4D &aColor) const | 
| Mix this COLOR4D with an input COLOR4D using the OR-mixing of legacy canvas.   | |
| void | ToHSL (double &aOutHue, double &aOutSaturation, double &aOutLightness) const | 
| Converts current color (stored in RGB) to HSL format.   | |
| void | FromHSL (double aInHue, double aInSaturation, double aInLightness) | 
| Change currently used color to the one given by hue, saturation and lightness parameters.   | |
| COLOR4D & | Brighten (double aFactor) | 
| Makes the color brighter by a given factor.   | |
| COLOR4D & | Darken (double aFactor) | 
| Makes the color darker by a given factor.   | |
| COLOR4D & | Invert () | 
| Makes the color inverted, alpha remains the same.   | |
| COLOR4D & | Saturate (double aFactor) | 
| Saturates the color to a given factor (in HSV model)   | |
| COLOR4D & | Desaturate () | 
| Removes color (in HSL model)   | |
| COLOR4D | Brightened (double aFactor) const | 
| Return a color that is brighter by a given factor, without modifying object.   | |
| COLOR4D | Darkened (double aFactor) const | 
| Return a color that is darker by a given factor, without modifying object.   | |
| COLOR4D | Mix (const COLOR4D &aColor, double aFactor) const | 
| Return a color that is mixed with the input by a factor.   | |
| COLOR4D | WithAlpha (double aAlpha) const | 
| Return a color with the same color, but the given alpha.   | |
| COLOR4D | Inverted () const | 
| Returns an inverted color, alpha remains the same.   | |
| double | GetBrightness () const | 
| Returns the brightness value of the color ranged from 0.0 to 1.0.   | |
| void | ToHSV (double &aOutHue, double &aOutSaturation, double &aOutValue, bool aAlwaysDefineHue=false) const | 
| Convert current color (stored in RGB) to HSV format.   | |
| void | FromHSV (double aInH, double aInS, double aInV) | 
| Changes currently used color to the one given by hue, saturation and value parameters.   | |
| double | Distance (const COLOR4D &other) const | 
| Returns the distance (in RGB space) between two colors.   | |
| int | Compare (const COLOR4D &aRhs) const | 
| double | RelativeLuminance () const | 
| Compute the relative luminance of a color using the formula from WCAG21.   | |
Static Public Member Functions | |
| static double | ContrastRatio (const COLOR4D &aLeft, const COLOR4D &aRight) | 
| Compute the contrast ration between two colors using the formula from WCAG21.   | |
| static EDA_COLOR_T | FindNearestLegacyColor (int aR, int aG, int aB) | 
| Returns a legacy color ID that is closest to the given 8-bit RGB values.   | |
Public Attributes | |
| double | r | 
| Red component.   | |
| double | g | 
| Green component.   | |
| double | b | 
| Blue component.   | |
| double | a | 
| Alpha component.   | |
Static Public Attributes | |
| static const COLOR4D | UNSPECIFIED | 
| For legacy support; used as a value to indicate color hasn't been set yet.   | |
| static const COLOR4D | WHITE | 
| static const COLOR4D | BLACK | 
| static const COLOR4D | CLEAR | 
A color representation with 4 components: red, green, blue, alpha.
      
  | 
  inline | 
Definition at line 107 of file color4d.h.
Referenced by Brighten(), Brightened(), Compare(), ContrastRatio(), Darken(), Darkened(), Desaturate(), Distance(), FromCSSRGBA(), Invert(), Inverted(), LegacyMix(), Mix(), Saturate(), and WithAlpha().
      
  | 
  inline | 
| COLOR4D::COLOR4D | ( | EDA_COLOR_T | aColor | ) | 
| aColor | is one of KiCad's palette colors. | 
Definition at line 84 of file color4d.cpp.
References a, b, colorRefs(), g, StructColors::m_Blue, StructColors::m_Green, StructColors::m_Red, NBCOLORS, r, and UNSPECIFIED.
| COLOR4D::COLOR4D | ( | const wxString & | aColorStr | ) | 
Defines a color from a CSS or HTML-type string.
| aColorStr | input string | 
Definition at line 113 of file color4d.cpp.
References SetFromHexString(), and SetFromWxString().
| COLOR4D::COLOR4D | ( | const wxColour & | aColor | ) | 
      
  | 
  inline | 
      
  | 
  inline | 
Return a color that is brighter by a given factor, without modifying object.
| aFactor | Specifies how bright the color should become (valid values: 0.0 .. 1.0). | 
Definition at line 268 of file color4d.h.
References a, b, COLOR4D(), g, and r.
Referenced by KIGFX::SCH_PAINTER::drawDanglingIndicator(), KIGFX::SCH_PAINTER::drawPinDanglingIndicator(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), COLOR_SWATCH::RenderToDC(), EDIT_POINTS::ViewDraw(), and RATSNEST_VIEW_ITEM::ViewDraw().
| int COLOR4D::Compare | ( | const COLOR4D & | aRhs | ) | const | 
Definition at line 588 of file color4d.cpp.
References a, b, COLOR4D(), g, and r.
Referenced by BOOST_AUTO_TEST_CASE().
Compute the contrast ration between two colors using the formula from WCAG21.
| aLeft | is the first color to use in the ratio | 
| aRight | is the second color to use in the ratio | 
Definition at line 617 of file color4d.cpp.
References COLOR4D(), and RelativeLuminance().
      
  | 
  inline | 
Makes the color darker by a given factor.
| aFactor | Specifies how dark the color should become (valid values: 0.0 .. 1.0). | 
Definition at line 226 of file color4d.h.
References b, COLOR4D(), g, and r.
Referenced by STEP_PCB_MODEL::CreatePCB(), and KIGFX::PCB_RENDER_SETTINGS::GetColor().
      
  | 
  inline | 
Return a color that is darker by a given factor, without modifying object.
| aFactor | Specifies how dark the color should become (valid values: 0.0 .. 1.0). | 
Definition at line 282 of file color4d.h.
References a, b, COLOR4D(), g, and r.
Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), COLOR_SWATCH::RenderToDC(), EDIT_POINTS::ViewDraw(), and RATSNEST_VIEW_ITEM::ViewDraw().
| COLOR4D & COLOR4D::Desaturate | ( | ) | 
Removes color (in HSL model)
Definition at line 511 of file color4d.cpp.
References b, COLOR4D(), FromHSL(), g, r, and ToHSL().
Referenced by KIGFX::SCH_PAINTER::draw(), and SCH_PIN::PlotPinTexts().
| double COLOR4D::Distance | ( | const COLOR4D & | other | ) | const | 
Returns the distance (in RGB space) between two colors.
Definition at line 532 of file color4d.cpp.
References b, COLOR4D(), g, and r.
Referenced by CURSOR::Plot(), and EDIT_POINTS::ViewDraw().
      
  | 
  static | 
Returns a legacy color ID that is closest to the given 8-bit RGB values.
Definition at line 540 of file color4d.cpp.
References BLACK, colorRefs(), distance(), StructColors::m_Blue, StructColors::m_Green, StructColors::m_Red, and NBCOLORS.
| COLOR4D & COLOR4D::FromCSSRGBA | ( | int | aRed, | 
| int | aGreen, | ||
| int | aBlue, | ||
| double | aAlpha = 1.0 ) | 
Initialize the color from a RGBA value with 0-255 red/green/blue and 0-1 alpha.
Suitable for taking the values directly from the "CSS syntax" from ToWxString.
Definition at line 577 of file color4d.cpp.
References a, b, COLOR4D(), g, and r.
Referenced by GetColorFromInt().
| void COLOR4D::FromHSL | ( | double | aInHue, | 
| double | aInSaturation, | ||
| double | aInLightness ) | 
Change currently used color to the one given by hue, saturation and lightness parameters.
| aInHue | is hue component, in degrees (0.0 - 360.0). | 
| aInSaturation | is saturation component (0.0 - 1.0). | 
| aInLightness | is lightness component (0.0 - 1.0). | 
Definition at line 327 of file color4d.cpp.
References std::abs(), b, g, Q, and r.
Referenced by BOOST_AUTO_TEST_CASE(), Desaturate(), and TUNING_STATUS_VIEW_ITEM::ViewDraw().
| void COLOR4D::FromHSV | ( | double | aInH, | 
| double | aInS, | ||
| double | aInV ) | 
Changes currently used color to the one given by hue, saturation and value parameters.
| aInH | is hue component, in degrees. | 
| aInS | is saturation component. | 
| aInV | is value component. | 
Definition at line 422 of file color4d.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Saturate().
      
  | 
  inline | 
Returns the brightness value of the color ranged from 0.0 to 1.0.
Definition at line 333 of file color4d.h.
Referenced by RC_TREE_MODEL::GetAttr(), KIGFX::PREVIEW::GetShadowColor(), COLOR_SWATCH::RenderToDC(), and EDIT_POINTS::ViewDraw().
      
  | 
  inline | 
Makes the color inverted, alpha remains the same.
Definition at line 242 of file color4d.h.
References b, COLOR4D(), g, and r.
Referenced by KIGFX::SCH_PAINTER::draw(), CURSOR::Plot(), and EDIT_POINTS::ViewDraw().
      
  | 
  inline | 
Mix this COLOR4D with an input COLOR4D using the OR-mixing of legacy canvas.
Can be removed once legacy canvas is removed. Depends on wxColour for simplicity, but could be re-written to avoid this dependency if desired.
| aColor | The color to mix with this one | 
Definition at line 231 of file color4d.cpp.
Return a color that is mixed with the input by a factor.
| aFactor | Specifies how much of the original color to keep (valid values: 0.0 .. 1.0). | 
Definition at line 295 of file color4d.h.
References a, b, COLOR4D(), g, and r.
Referenced by KIGFX::SCH_PAINTER::draw(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), getBorderColour(), BOARD_ADAPTER::GetLayerColors(), WX_PANEL::OnPaint(), CURSOR::Plot(), SCH_PIN::PlotPinTexts(), and SCINTILLA_TRICKS::setupStyles().
| double COLOR4D::RelativeLuminance | ( | ) | const | 
Compute the relative luminance of a color using the formula from WCAG21.
Definition at line 606 of file color4d.cpp.
Referenced by ContrastRatio().
| COLOR4D & COLOR4D::Saturate | ( | double | aFactor | ) | 
| bool COLOR4D::SetFromHexString | ( | const wxString & | aColorString | ) | 
| bool COLOR4D::SetFromWxString | ( | const wxString & | aColorString | ) | 
Set color values by parsing a string using wxColour::Set().
| aColorString | is a color string that wxColour can understand. | 
Definition at line 129 of file color4d.cpp.
Referenced by COLOR4D(), KIGFX::from_json(), and NET_GRID_TABLE::SetValue().
| wxColour COLOR4D::ToColour | ( | ) | const | 
Definition at line 220 of file color4d.cpp.
Referenced by LAYER_PRESENTATION::CreateLayerPairIcon(), DIALOG_JUNCTION_PROPS::DIALOG_JUNCTION_PROPS(), DIALOG_LINE_PROPERTIES::DIALOG_LINE_PROPERTIES(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_WIRE_BUS_PROPERTIES::DIALOG_WIRE_BUS_PROPERTIES(), BITMAP_BASE::DrawBitmap(), LAYER_PRESENTATION::DrawColorSwatch(), getBorderColour(), PANEL_SETUP_BOARD_STACKUP::GetSelectedColor(), PANEL_SETUP_BOARD_STACKUP::lazyBuildRowUI(), WX_PANEL::OnPaint(), PCB_DESIGN_BLOCK_PREVIEW_WIDGET::PCB_DESIGN_BLOCK_PREVIEW_WIDGET(), CURSOR::Plot(), COLOR_SWATCH::RenderToDC(), SCH_DESIGN_BLOCK_PREVIEW_WIDGET::SCH_DESIGN_BLOCK_PREVIEW_WIDGET(), SCINTILLA_TRICKS::setupStyles(), SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET(), ToCSSString(), and NUMBER_BADGE::UpdateNumber().
| wxString COLOR4D::ToCSSString | ( | ) | const | 
Definition at line 147 of file color4d.cpp.
References red, and ToColour().
Referenced by COLOR_SETTINGS::COLOR_SETTINGS(), FIELDS_GRID_TABLE::GetValue(), PANEL_SETUP_NETCLASSES::OnImportColorsClick(), KIGFX::operator<<(), SCH_IO_KICAD_LEGACY::saveLine(), SIMULATOR_FRAME_UI::SaveWorkbook(), and KIGFX::to_json().
| wxString COLOR4D::ToHexString | ( | ) | const | 
| void COLOR4D::ToHSL | ( | double & | aOutHue, | 
| double & | aOutSaturation, | ||
| double & | aOutLightness ) const | 
Converts current color (stored in RGB) to HSL format.
| aOutHue | is the conversion result for hue component, in degrees 0 ... 360.0. | 
| aOutSaturation | is the conversion result for saturation component (0 ... 1.0). | 
| aOutLightness | is conversion result for value component (0 ... 1.0). | 
Definition at line 296 of file color4d.cpp.
References std::abs(), b, g, and r.
Referenced by Desaturate(), and TUNING_STATUS_VIEW_ITEM::ViewDraw().
| void COLOR4D::ToHSV | ( | double & | aOutHue, | 
| double & | aOutSaturation, | ||
| double & | aOutValue, | ||
| bool | aAlwaysDefineHue = false ) const | 
Convert current color (stored in RGB) to HSV format.
| aOutHue | is the conversion result for hue component, in degrees 0 ... 360.0. | 
| aOutSaturation | is the conversion result for saturation component (0 ... 1.0). | 
| aOutValue | is conversion result for value component (0 ... 1.0). | 
| aAlwaysDefineHue | controls the way hue is defined when r = v = b | 
Definition at line 368 of file color4d.cpp.
References b, delta, g, and r.
Referenced by Saturate().
      
  | 
  inline | 
Return a color with the same color, but the given alpha.
| aAlpha | specifies the alpha of the new color | 
Definition at line 311 of file color4d.h.
References b, COLOR4D(), g, and r.
Referenced by PNS_PCBNEW_DEBUG_DECORATOR::AddItem(), PNS_PCBNEW_DEBUG_DECORATOR::AddShape(), PNS_LOG_VIEWER_OVERLAY::Arc(), LAYER_PRESENTATION::CreateLayerPairIcon(), deemphasise(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), LAYER_PRESENTATION::DrawColorSwatch(), BOARD_PRINTOUT::DrawPage(), SCH_IO_ALTIUM::ParseEllipse(), PCB_GRID_HELPER::PCB_GRID_HELPER(), SCH_PRINTOUT::PrintPage(), SetLibShapeFillAndColor(), SCINTILLA_TRICKS::setupStyles(), SCH_DRAG_NET_COLLISION_MONITOR::Update(), EDIT_POINTS::ViewDraw(), RATSNEST_VIEW_ITEM::ViewDraw(), ROUTER_STATUS_VIEW_ITEM::ViewDraw(), and TUNING_STATUS_VIEW_ITEM::ViewDraw().
| double KIGFX::COLOR4D::a | 
Alpha component.
Definition at line 395 of file color4d.h.
Referenced by KIGFX::CAIRO_GAL_BASE::blitCursor(), BOOST_AUTO_TEST_CASE(), Brightened(), KIGFX::CAIRO_GAL_BASE::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), COLOR4D(), COLOR4D(), COLOR4D(), Compare(), STEP_PCB_MODEL::CreatePCB(), Darkened(), KIGFX::SCH_PAINTER::draw(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), DS_DATA_MODEL_IO::format(), formatFill(), FromCSSRGBA(), BOARD_ADAPTER::GetColor(), BOARD_ADAPTER::GetLayerColors(), SVG_IMPORT_PLUGIN::Import(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), PCB_CONTROL::LayerAlphaDec(), PCB_CONTROL::LayerAlphaInc(), LegacyMix(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), Mix(), std::hash< KIGFX::COLOR4D >::operator()(), KIGFX::operator<(), KIGFX::operator==(), kiapi::common::PackColor(), DRAWING_SHEET_PARSER::parseText(), SCH_SHEET::Plot(), COLOR_SWATCH::RenderToDC(), SCH_IO_KICAD_SEXPR::saveJunction(), SCH_IO_KICAD_SEXPR::saveSheet(), SetFromHexString(), SetFromWxString(), SCH_LINE::SetLineColor(), SCINTILLA_TRICKS::setupStyles(), ToColour(), ToHexString(), and SCH_DRAG_NET_COLLISION_MONITOR::Update().
| double KIGFX::COLOR4D::b | 
Blue component.
Definition at line 394 of file color4d.h.
Referenced by KIGFX::CAIRO_GAL_BASE::blitCursor(), BOOST_AUTO_TEST_CASE(), Brighten(), Brightened(), KIGFX::CAIRO_GAL_BASE::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), COLOR4D(), COLOR4D(), COLOR4D(), Compare(), STEP_PCB_MODEL::CreatePCB(), Darken(), Darkened(), Desaturate(), Distance(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), DS_DATA_MODEL_IO::format(), formatFill(), FromCSSRGBA(), FromHSL(), FromHSV(), PCB_IO_IPC2581::generateContentStackup(), GetBrightness(), BOARD_ADAPTER::GetColor(), getDXFColorName(), SVG_IMPORT_PLUGIN::Import(), Invert(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), LegacyMix(), Mix(), std::hash< KIGFX::COLOR4D >::operator()(), KIGFX::operator<(), KIGFX::operator==(), kiapi::common::PackColor(), DRAWING_SHEET_PARSER::parseText(), RelativeLuminance(), Saturate(), SCH_IO_KICAD_SEXPR::saveJunction(), SCH_IO_KICAD_SEXPR::saveSheet(), SetFromHexString(), SetFromWxString(), RENDER_3D_OPENGL::setLayerMaterial(), PANEL_TRANSLINE::SetPrmBgColor(), ToColour(), ToHexString(), ToHSL(), ToHSV(), and WithAlpha().
      
  | 
  static | 
Definition at line 402 of file color4d.h.
Referenced by KIGFX::ANTIALIASING_SMAA::Begin(), KIGFX::ANTIALIASING_SUPERSAMPLING::Begin(), KIGFX::CAIRO_GAL::ClearTarget(), KIGFX::OPENGL_GAL::ClearTarget(), KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), KIGFX::GERBVIEW_RENDER_SETTINGS::GERBVIEW_RENDER_SETTINGS(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetBackgroundColor(), KIGFX::PCB_RENDER_SETTINGS::GetBackgroundColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::RENDER_SETTINGS::GetLayerColor(), KIGFX::PREVIEW::GetShadowColor(), KIGFX::ANTIALIASING_SMAA::Present(), and SYMBOL_TREE_SYNCHRONIZING_ADAPTER::ShowPreview().
      
  | 
  static | 
Definition at line 403 of file color4d.h.
Referenced by KIGFX::PCB_PAINTER::draw(), and KIGFX::PCB_RENDER_SETTINGS::GetColor().
| double KIGFX::COLOR4D::g | 
Green component.
Definition at line 393 of file color4d.h.
Referenced by KIGFX::CAIRO_GAL_BASE::blitCursor(), BOOST_AUTO_TEST_CASE(), Brighten(), Brightened(), KIGFX::CAIRO_GAL_BASE::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), COLOR4D(), COLOR4D(), COLOR4D(), Compare(), STEP_PCB_MODEL::CreatePCB(), Darken(), Darkened(), Desaturate(), Distance(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), DS_DATA_MODEL_IO::format(), formatFill(), FromCSSRGBA(), FromHSL(), FromHSV(), PCB_IO_IPC2581::generateContentStackup(), GetBrightness(), BOARD_ADAPTER::GetColor(), getDXFColorName(), SVG_IMPORT_PLUGIN::Import(), Invert(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), LegacyMix(), Mix(), std::hash< KIGFX::COLOR4D >::operator()(), KIGFX::operator<(), KIGFX::operator==(), kiapi::common::PackColor(), DRAWING_SHEET_PARSER::parseText(), RelativeLuminance(), Saturate(), SCH_IO_KICAD_SEXPR::saveJunction(), SCH_IO_KICAD_SEXPR::saveSheet(), SetFromHexString(), SetFromWxString(), RENDER_3D_OPENGL::setLayerMaterial(), PANEL_TRANSLINE::SetPrmBgColor(), ToColour(), ToHexString(), ToHSL(), ToHSV(), and WithAlpha().
| double KIGFX::COLOR4D::r | 
Red component.
Definition at line 392 of file color4d.h.
Referenced by KIGFX::CAIRO_GAL_BASE::blitCursor(), BOOST_AUTO_TEST_CASE(), Brighten(), Brightened(), KIGFX::CAIRO_GAL_BASE::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), COLOR4D(), COLOR4D(), COLOR4D(), Compare(), STEP_PCB_MODEL::CreatePCB(), Darken(), Darkened(), Desaturate(), Distance(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), DS_DATA_MODEL_IO::format(), formatFill(), FromCSSRGBA(), FromHSL(), FromHSV(), PCB_IO_IPC2581::generateContentStackup(), GetBrightness(), BOARD_ADAPTER::GetColor(), getDXFColorName(), SVG_IMPORT_PLUGIN::Import(), Invert(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), LegacyMix(), Mix(), std::hash< KIGFX::COLOR4D >::operator()(), KIGFX::operator<(), KIGFX::operator==(), kiapi::common::PackColor(), DRAWING_SHEET_PARSER::parseText(), RelativeLuminance(), Saturate(), SCH_IO_KICAD_SEXPR::saveJunction(), SCH_IO_KICAD_SEXPR::saveSheet(), SetFromHexString(), SetFromWxString(), RENDER_3D_OPENGL::setLayerMaterial(), PANEL_TRANSLINE::SetPrmBgColor(), ToColour(), ToHexString(), ToHSL(), ToHSV(), and WithAlpha().
      
  | 
  static | 
For legacy support; used as a value to indicate color hasn't been set yet.
Definition at line 398 of file color4d.h.
Referenced by APPEARANCE_CONTROLS::buildNetClassMenu(), COLOR4D(), PG_COLOR_EDITOR::colorFromVariant(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::PREVIEW::POLYGON_ITEM::drawPreviewShape(), DS_DRAW_ITEM_TEXT::DS_DRAW_ITEM_TEXT(), STROKE_PARAMS::Format(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::SCH_PAINTER::getRenderColor(), IMPORTED_STROKE::IMPORTED_STROKE(), PANEL_SETUP_NETCLASSES::OnAddNetclassClick(), WX_PANEL::OnPaint(), KIGFX::PREVIEW::POLYGON_ITEM::POLYGON_ITEM(), PG_CELL_RENDERER::Render(), STROKE_PARAMS::STROKE_PARAMS(), and PANEL_SETUP_NETCLASSES::TransferDataFromWindow().
      
  | 
  static | 
Definition at line 401 of file color4d.h.
Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetLayerColor(), KIGFX::PREVIEW::GetShadowColor(), and PNS_DEBUG_SHAPE::PNS_DEBUG_SHAPE().