![]() |
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. More... | |
void | ToHSL (double &aOutHue, double &aOutSaturation, double &aOutValue) const |
Converts current color (stored in RGB) to HSL format. More... | |
void | FromHSL (double aInHue, double aInSaturation, double aInLightness) |
Change currently used color to the one given by hue, saturation and lightness parameters. More... | |
COLOR4D & | Brighten (double aFactor) |
Makes the color brighter by a given factor. More... | |
COLOR4D & | Darken (double aFactor) |
Makes the color darker by a given factor. More... | |
COLOR4D & | Invert () |
Makes the color inverted, alpha remains the same. More... | |
COLOR4D & | Saturate (double aFactor) |
Saturates the color to a given factor (in HSV model) More... | |
COLOR4D | Brightened (double aFactor) const |
Return a color that is brighter by a given factor, without modifying object. More... | |
COLOR4D | Darkened (double aFactor) const |
Return a color that is darker by a given factor, without modifying object. More... | |
COLOR4D | Mix (const COLOR4D &aColor, double aFactor) const |
Return a color that is mixed with the input by a factor. More... | |
COLOR4D | WithAlpha (double aAlpha) const |
Return a color with the same color, but the given alpha. More... | |
COLOR4D | Inverted () const |
Returns an inverted color, alpha remains the same. More... | |
double | GetBrightness () const |
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 |
Convert current color (stored in RGB) to HSV format. More... | |
void | FromHSV (double aInH, double aInS, double aInV) |
Changes currently used color to the one given by hue, saturation and value parameters. More... | |
double | Distance (const COLOR4D &other) const |
Returns the distance (in RGB space) between two colors. More... | |
Static Public Member Functions | |
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. 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 |
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 Brightened(), Darkened(), Inverted(), Mix(), and WithAlpha().
|
inline |
COLOR4D::COLOR4D | ( | EDA_COLOR_T | aColor | ) |
aColor | is one of KiCad's palette colors. |
Definition at line 83 of file color4d.cpp.
References a, b, colorRefs(), g, StructColors::m_Blue, StructColors::m_Green, StructColors::m_Red, NBCOLORS, r, and UNSPECIFIED.
|
inline |
Makes the color brighter by a given factor.
aFactor | Specifies how bright the color should become (valid values: 0.0 .. 1.0). |
Definition at line 225 of file color4d.h.
Referenced by KIGFX::PCB_RENDER_SETTINGS::GetColor().
|
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 278 of file color4d.h.
References a, b, COLOR4D(), g, and r.
Referenced by KIGFX::SCH_PAINTER::drawDanglingSymbol(), KIGFX::SCH_PAINTER::drawPinDanglingSymbol(), KIGFX::DS_RENDER_SETTINGS::DS_RENDER_SETTINGS(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), COLOR_SWATCH::MakeBitmap(), KIGFX::RENDER_SETTINGS::update(), and EDIT_POINTS::ViewDraw().
|
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 242 of file color4d.h.
Referenced by 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 292 of file color4d.h.
References a, b, COLOR4D(), g, and r.
Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), COLOR_SWATCH::MakeBitmap(), KIGFX::RENDER_SETTINGS::update(), and EDIT_POINTS::ViewDraw().
double COLOR4D::Distance | ( | const COLOR4D & | other | ) | const |
Returns the distance (in RGB space) between two colors.
Definition at line 513 of file color4d.cpp.
Referenced by EDIT_POINTS::ViewDraw().
|
static |
Returns a legacy color ID that is closest to the given 8-bit RGB values.
Definition at line 521 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 558 of file color4d.cpp.
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 323 of file color4d.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
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 418 of file color4d.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), DIALOG_COLOR_PICKER::OnChangeBrightness(), DIALOG_COLOR_PICKER::OnChangeEditHue(), DIALOG_COLOR_PICKER::OnChangeEditSat(), Saturate(), and DIALOG_COLOR_PICKER::setHSvaluesFromCursor().
|
inline |
Returns the brightness value of the color ranged from 0.0 to 1.0.
Definition at line 343 of file color4d.h.
Referenced by RC_TREE_MODEL::GetAttr(), KIGFX::PREVIEW::GetShadowColor(), GRHaloText(), KIGFX::DS_RENDER_SETTINGS::IsBackgroundDark(), KIGFX::SCH_RENDER_SETTINGS::IsBackgroundDark(), KIGFX::PCB_RENDER_SETTINGS::IsBackgroundDark(), COLOR_SWATCH::MakeBitmap(), and EDIT_POINTS::ViewDraw().
|
inline |
Makes the color inverted, alpha remains the same.
Definition at line 258 of file color4d.h.
Referenced by EDIT_POINTS::ViewDraw().
|
inline |
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 305 of file color4d.h.
References a, b, COLOR4D(), g, and r.
Referenced by EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), BOARD_ADAPTER::InitSettings(), and KIGFX::RENDER_SETTINGS::update().
COLOR4D & COLOR4D::Saturate | ( | double | aFactor | ) |
Saturates the color to a given factor (in HSV model)
Definition at line 492 of file color4d.cpp.
void COLOR4D::ToHSL | ( | double & | aOutHue, |
double & | aOutSaturation, | ||
double & | aOutValue | ||
) | 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 292 of file color4d.cpp.
Referenced by PNS_TUNE_STATUS_POPUP::UpdateStatus().
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 364 of file color4d.cpp.
References b, delta, g, and r.
Referenced by DIALOG_COLOR_PICKER::buttColorClick(), DIALOG_COLOR_PICKER::DIALOG_COLOR_PICKER(), DIALOG_COLOR_PICKER::OnColorValueText(), DIALOG_COLOR_PICKER::OnResetButton(), DIALOG_COLOR_PICKER::onRGBMouseDrag(), Saturate(), and DIALOG_COLOR_PICKER::SetEditVals().
|
inline |
Return a color with the same color, but the given alpha.
aAlpha | specifies the alpha of the new color |
Definition at line 321 of file color4d.h.
References b, COLOR4D(), g, and r.
Referenced by PNS_LOG_VIEWER_OVERLAY::Arc(), deemphasise(), LAYER_SELECTOR::DrawColorSwatch(), BOARD_PRINTOUT::DrawPage(), FAB_LAYER_COLOR::GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), COLOR_SWATCH::MakeBitmap(), PCB_GRID_HELPER::PCB_GRID_HELPER(), PCB_EDIT_FRAME::PrepareLayerIndicator(), and EDIT_POINTS::ViewDraw().
double KIGFX::COLOR4D::a |
Alpha component.
Definition at line 387 of file color4d.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::CAIRO_GAL_BASE::blitCursor(), KIGFX::OPENGL_GAL::blitCursor(), Brightened(), DIALOG_COLOR_PICKER::buttColorClick(), KIGFX::CAIRO_GAL_BASE::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), CUSTOM_COLOR_ITEM::CUSTOM_COLOR_ITEM(), Darkened(), DIALOG_COLOR_PICKER::DIALOG_COLOR_PICKER(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL_BASE::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::CAIRO_GAL_BASE::drawAxes(), KIGFX::OPENGL_GAL::drawBitmapOverbar(), KIGFX::OPENGL_GAL::DrawCircle(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL_BASE::drawGridCross(), KIGFX::CAIRO_GAL_BASE::drawGridLine(), KIGFX::CAIRO_GAL_BASE::drawGridPoint(), KIGFX::CAIRO_GAL_BASE::DrawGroup(), KIGFX::OPENGL_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::drawPolyline(), KIGFX::OPENGL_GAL::DrawRectangle(), KIGFX::CAIRO_GAL_BASE::DrawSegment(), KIGFX::OPENGL_GAL::DrawSegment(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::CAIRO_GAL_BASE::flushPath(), formatStroke(), FromCSSRGBA(), BOARD_ADAPTER::GetColor(), BOARD_ADAPTER::InitSettings(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), PCB_CONTROL::LayerAlphaDec(), PCB_CONTROL::LayerAlphaInc(), KIGFX::PCB_RENDER_SETTINGS::LoadColors(), PANEL_PREVIEW_3D_MODEL::loadSettings(), Mix(), DIALOG_COLOR_PICKER::OnChangeAlpha(), APPEARANCE_CONTROLS::OnLayerAlphaChanged(), DIALOG_COLOR_PICKER::OnResetButton(), KIGFX::operator<(), KIGFX::operator==(), SCH_SEXPR_PLUGIN::saveJunction(), SCH_SEXPR_PLUGIN::saveSheet(), DIALOG_COLOR_PICKER::SetEditVals(), KIGFX::CAIRO_GAL_BASE::SetFillColor(), SCH_LINE::SetLineColor(), KIGFX::CAIRO_GAL_BASE::SetStrokeColor(), KIGFX::CAIRO_GAL_BASE::storePath(), and ROUTER_PREVIEW_ITEM::Update().
double KIGFX::COLOR4D::b |
Blue component.
Definition at line 386 of file color4d.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::CAIRO_GAL_BASE::blitCursor(), KIGFX::OPENGL_GAL::blitCursor(), Brighten(), Brightened(), DIALOG_COLOR_PICKER::buttColorClick(), KIGFX::CAIRO_GAL_BASE::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::CAIRO_GAL_BASE::ClearScreen(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), CUSTOM_COLOR_ITEM::CUSTOM_COLOR_ITEM(), Darken(), Darkened(), Distance(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL_BASE::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::CAIRO_GAL_BASE::drawAxes(), KIGFX::OPENGL_GAL::drawBitmapOverbar(), KIGFX::OPENGL_GAL::DrawCircle(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL_BASE::drawGridCross(), KIGFX::CAIRO_GAL_BASE::drawGridLine(), KIGFX::CAIRO_GAL_BASE::drawGridPoint(), KIGFX::CAIRO_GAL_BASE::DrawGroup(), KIGFX::OPENGL_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::drawPolyline(), KIGFX::OPENGL_GAL::DrawRectangle(), DIALOG_COLOR_PICKER::drawRGBPalette(), KIGFX::CAIRO_GAL_BASE::DrawSegment(), KIGFX::OPENGL_GAL::DrawSegment(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::CAIRO_GAL_BASE::flushPath(), formatStroke(), FromCSSRGBA(), FromHSL(), FromHSV(), GetBrightness(), BOARD_ADAPTER::GetColor(), getDXFColorName(), TRANSLINE::Init(), Invert(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), PANEL_PREVIEW_3D_MODEL::loadSettings(), Mix(), DIALOG_COLOR_PICKER::OnChangeEditBlue(), DIALOG_COLOR_PICKER::OnResetButton(), DIALOG_COLOR_PICKER::onRGBMouseDrag(), KIGFX::operator<(), KIGFX::operator==(), Saturate(), SCH_SEXPR_PLUGIN::saveJunction(), SCH_SEXPR_PLUGIN::saveSheet(), DIALOG_COLOR_PICKER::SetEditVals(), KIGFX::CAIRO_GAL_BASE::SetFillColor(), PANEL_TRANSLINE::SetPrmBgColor(), KIGFX::CAIRO_GAL_BASE::SetStrokeColor(), KIGFX::CAIRO_GAL_BASE::storePath(), ToHSL(), ToHSV(), PANEL_3D_OPENGL_OPTIONS::TransferDataFromWindow(), KIGFX::RENDER_SETTINGS::update(), and WithAlpha().
|
static |
Definition at line 394 of file color4d.h.
Referenced by KIGFX::ANTIALIASING_SUPERSAMPLING::Begin(), KIGFX::ANTIALIASING_SMAA::Begin(), KIGFX::OPENGL_GAL::ClearTarget(), KIGFX::CAIRO_GAL::ClearTarget(), KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), KIGFX::GERBVIEW_RENDER_SETTINGS::GERBVIEW_RENDER_SETTINGS(), and KIGFX::ANTIALIASING_SMAA::Present().
|
static |
Definition at line 395 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 385 of file color4d.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::CAIRO_GAL_BASE::blitCursor(), KIGFX::OPENGL_GAL::blitCursor(), Brighten(), Brightened(), DIALOG_COLOR_PICKER::buttColorClick(), KIGFX::CAIRO_GAL_BASE::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::CAIRO_GAL_BASE::ClearScreen(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), CUSTOM_COLOR_ITEM::CUSTOM_COLOR_ITEM(), Darken(), Darkened(), Distance(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL_BASE::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::CAIRO_GAL_BASE::drawAxes(), KIGFX::OPENGL_GAL::drawBitmapOverbar(), KIGFX::OPENGL_GAL::DrawCircle(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL_BASE::drawGridCross(), KIGFX::CAIRO_GAL_BASE::drawGridLine(), KIGFX::CAIRO_GAL_BASE::drawGridPoint(), KIGFX::CAIRO_GAL_BASE::DrawGroup(), KIGFX::OPENGL_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::drawPolyline(), KIGFX::OPENGL_GAL::DrawRectangle(), DIALOG_COLOR_PICKER::drawRGBPalette(), KIGFX::CAIRO_GAL_BASE::DrawSegment(), KIGFX::OPENGL_GAL::DrawSegment(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::CAIRO_GAL_BASE::flushPath(), formatStroke(), FromCSSRGBA(), FromHSL(), FromHSV(), GetBrightness(), BOARD_ADAPTER::GetColor(), getDXFColorName(), TRANSLINE::Init(), Invert(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), PANEL_PREVIEW_3D_MODEL::loadSettings(), Mix(), DIALOG_COLOR_PICKER::OnChangeEditGreen(), DIALOG_COLOR_PICKER::OnResetButton(), DIALOG_COLOR_PICKER::onRGBMouseDrag(), KIGFX::operator<(), KIGFX::operator==(), Saturate(), SCH_SEXPR_PLUGIN::saveJunction(), SCH_SEXPR_PLUGIN::saveSheet(), DIALOG_COLOR_PICKER::SetEditVals(), KIGFX::CAIRO_GAL_BASE::SetFillColor(), PANEL_TRANSLINE::SetPrmBgColor(), KIGFX::CAIRO_GAL_BASE::SetStrokeColor(), KIGFX::CAIRO_GAL_BASE::storePath(), ToHSL(), ToHSV(), PANEL_3D_OPENGL_OPTIONS::TransferDataFromWindow(), and WithAlpha().
double KIGFX::COLOR4D::r |
Red component.
Definition at line 384 of file color4d.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::CAIRO_GAL_BASE::blitCursor(), KIGFX::OPENGL_GAL::blitCursor(), Brighten(), Brightened(), DIALOG_COLOR_PICKER::buttColorClick(), KIGFX::CAIRO_GAL_BASE::ChangeGroupColor(), KIGFX::VERTEX_MANAGER::ChangeItemColor(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::CAIRO_GAL_BASE::ClearScreen(), KIGFX::VERTEX_MANAGER::Color(), COLOR4D(), CUSTOM_COLOR_ITEM::CUSTOM_COLOR_ITEM(), Darken(), Darkened(), Distance(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL_BASE::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::CAIRO_GAL_BASE::drawAxes(), KIGFX::OPENGL_GAL::drawBitmapOverbar(), KIGFX::OPENGL_GAL::DrawCircle(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL_BASE::drawGridCross(), KIGFX::CAIRO_GAL_BASE::drawGridLine(), KIGFX::CAIRO_GAL_BASE::drawGridPoint(), KIGFX::CAIRO_GAL_BASE::DrawGroup(), KIGFX::OPENGL_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::drawPolyline(), KIGFX::OPENGL_GAL::DrawRectangle(), DIALOG_COLOR_PICKER::drawRGBPalette(), KIGFX::CAIRO_GAL_BASE::DrawSegment(), KIGFX::OPENGL_GAL::DrawSegment(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::CAIRO_GAL_BASE::flushPath(), formatStroke(), FromCSSRGBA(), FromHSL(), FromHSV(), GetBrightness(), BOARD_ADAPTER::GetColor(), getDXFColorName(), TRANSLINE::Init(), Invert(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), PANEL_PREVIEW_3D_MODEL::loadSettings(), Mix(), DIALOG_COLOR_PICKER::OnChangeEditRed(), DIALOG_COLOR_PICKER::OnResetButton(), DIALOG_COLOR_PICKER::onRGBMouseDrag(), KIGFX::operator<(), KIGFX::operator==(), Saturate(), SCH_SEXPR_PLUGIN::saveJunction(), SCH_SEXPR_PLUGIN::saveSheet(), DIALOG_COLOR_PICKER::SetEditVals(), KIGFX::CAIRO_GAL_BASE::SetFillColor(), PANEL_TRANSLINE::SetPrmBgColor(), KIGFX::CAIRO_GAL_BASE::SetStrokeColor(), KIGFX::CAIRO_GAL_BASE::storePath(), ToHSL(), ToHSV(), PANEL_3D_OPENGL_OPTIONS::TransferDataFromWindow(), and WithAlpha().
|
static |
For legacy support; used as a value to indicate color hasn't been set yet.
Definition at line 390 of file color4d.h.
Referenced by COLOR4D(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::SCH_PAINTER::getRenderColor(), and KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors().
|
static |
Definition at line 393 of file color4d.h.
Referenced by PNS_TEST_DEBUG_DECORATOR::DEBUG_ENT::DEBUG_ENT().