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... | |
COLOR4D (const wxString &aColorStr) | |
Defines a color from a CSS or HTML-type string. More... | |
COLOR4D (const wxColour &aColor) | |
bool | SetFromWxString (const wxString &aColorString) |
Set color values by parsing a string using wxColour::Set(). More... | |
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. 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 & | Desaturate () |
Removes color (in HSL 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 105 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.
COLOR4D::COLOR4D | ( | const wxString & | aColorStr | ) |
Defines a color from a CSS or HTML-type string.
aColorStr | input string |
Definition at line 112 of file color4d.cpp.
References SetFromHexString(), and SetFromWxString().
COLOR4D::COLOR4D | ( | const wxColour & | aColor | ) |
|
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 207 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 266 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 224 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 280 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().
COLOR4D & COLOR4D::Desaturate | ( | ) |
Removes color (in HSL model)
Definition at line 510 of file color4d.cpp.
References b, FromHSL(), g, r, and ToHSL().
Referenced by KIGFX::SCH_PAINTER::draw(), LIB_PIN::PlotPinTexts(), LIB_SHAPE::print(), LIB_PIN::printPinTexts(), and KIGFX::SCH_PAINTER::setDeviceColors().
double COLOR4D::Distance | ( | const COLOR4D & | other | ) | const |
|
static |
Returns a legacy color ID that is closest to the given 8-bit RGB values.
Definition at line 539 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 576 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 326 of file color4d.cpp.
References std::abs(), b, g, and r.
Referenced by BOOST_AUTO_TEST_CASE(), and Desaturate().
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 421 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 331 of file color4d.h.
Referenced by RC_TREE_MODEL::GetAttr(), KIGFX::PREVIEW::GetShadowColor(), KIGFX::SCH_RENDER_SETTINGS::IsBackgroundDark(), KIGFX::DS_RENDER_SETTINGS::IsBackgroundDark(), KIGFX::PCB_RENDER_SETTINGS::IsBackgroundDark(), COLOR_SWATCH::MakeBitmap(), and EDIT_POINTS::ViewDraw().
|
inline |
|
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 230 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 293 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::InitSettings(), WX_PANEL::OnPaint(), CURSOR::Plot(), LIB_PIN::PlotPinTexts(), LIB_SHAPE::print(), LIB_PIN::printPinTexts(), KIGFX::SCH_PAINTER::setDeviceColors(), SCINTILLA_TRICKS::setupStyles(), and KIGFX::RENDER_SETTINGS::update().
COLOR4D & COLOR4D::Saturate | ( | double | aFactor | ) |
Saturates the color to a given factor (in HSV model)
Definition at line 495 of file color4d.cpp.
bool COLOR4D::SetFromHexString | ( | const wxString & | aColorString | ) |
Definition at line 176 of file color4d.cpp.
Referenced by COLOR4D(), and DIALOG_COLOR_PICKER::OnColorValueText().
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 128 of file color4d.cpp.
Referenced by GRID_CELL_COLOR_SELECTOR::BeginEdit(), COLOR4D(), KIGFX::from_json(), and NET_GRID_TABLE::SetValue().
wxColour COLOR4D::ToColour | ( | ) | const |
Definition at line 219 of file color4d.cpp.
Referenced by PCB_ONE_LAYER_SELECTOR::buildList(), SELECT_COPPER_LAYERS_PAIR_DIALOG::buildList(), PANEL_SETUP_BOARD_STACKUP::createRowData(), DIALOG_JUNCTION_PROPS::DIALOG_JUNCTION_PROPS(), DIALOG_LINE_PROPERTIES::DIALOG_LINE_PROPERTIES(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_WIRE_BUS_PROPERTIES::DIALOG_WIRE_BUS_PROPERTIES(), LAYER_SELECTOR::DrawColorSwatch(), FOOTPRINT_PREVIEW_WIDGET::FOOTPRINT_PREVIEW_WIDGET(), getBorderColour(), PANEL_SETUP_BOARD_STACKUP::GetSelectedColor(), COLOR_SWATCH::MakeBitmap(), WX_PANEL::OnPaint(), CURSOR::Plot(), PCB_EDIT_FRAME::PrepareLayerIndicator(), SCINTILLA_TRICKS::setupStyles(), SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET(), ToCSSString(), and NUMBER_BADGE::UpdateNumber().
wxString COLOR4D::ToCSSString | ( | ) | const |
Definition at line 146 of file color4d.cpp.
References red, and ToColour().
Referenced by COLOR_SETTINGS::COLOR_SETTINGS(), GRID_CELL_COLOR_SELECTOR::GetValue(), KIGFX::operator<<(), SCH_LEGACY_PLUGIN::saveLine(), SIMULATOR_FRAME::SaveWorkbook(), and KIGFX::to_json().
wxString COLOR4D::ToHexString | ( | ) | const |
Definition at line 209 of file color4d.cpp.
References a, b, Format(), g, KiROUND(), and r.
Referenced by DIALOG_COLOR_PICKER::SetEditVals().
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 295 of file color4d.cpp.
References std::abs(), b, g, and r.
Referenced by Desaturate(), and 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 367 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 309 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(), 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(), SCINTILLA_TRICKS::setupStyles(), and EDIT_POINTS::ViewDraw().
double KIGFX::COLOR4D::a |
Alpha component.
Definition at line 375 of file color4d.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::blitCursor(), KIGFX::CAIRO_GAL_BASE::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::PCB_PAINTER::draw(), 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::drawSegmentChain(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::CAIRO_GAL_BASE::flushPath(), DS_DATA_MODEL_IO::format(), formatFill(), FromCSSRGBA(), BOARD_ADAPTER::GetColor(), BOARD_ADAPTER::InitSettings(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), PCB_CONTROL::LayerAlphaDec(), PCB_CONTROL::LayerAlphaInc(), LegacyMix(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), KIGFX::PCB_RENDER_SETTINGS::LoadColors(), PANEL_PREVIEW_3D_MODEL::loadSettings(), Mix(), DIALOG_COLOR_PICKER::OnChangeAlpha(), DIALOG_COLOR_PICKER::OnResetButton(), KIGFX::operator<(), KIGFX::operator==(), DRAWING_SHEET_PARSER::parseText(), SCH_SEXPR_PLUGIN::saveJunction(), SCH_SEXPR_PLUGIN::saveSheet(), DIALOG_COLOR_PICKER::SetEditVals(), KIGFX::CAIRO_GAL_BASE::SetFillColor(), SetFromHexString(), SetFromWxString(), SCH_LINE::SetLineColor(), KIGFX::CAIRO_GAL_BASE::SetStrokeColor(), SCINTILLA_TRICKS::setupStyles(), KIGFX::CAIRO_GAL_BASE::storePath(), ToColour(), ToHexString(), and ROUTER_PREVIEW_ITEM::Update().
double KIGFX::COLOR4D::b |
Blue component.
Definition at line 374 of file color4d.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::blitCursor(), KIGFX::CAIRO_GAL_BASE::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(), EXPORTER_STEP::composePCB(), CUSTOM_COLOR_ITEM::CUSTOM_COLOR_ITEM(), Darken(), Darkened(), Desaturate(), 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::drawSegmentChain(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::CAIRO_GAL_BASE::flushPath(), DS_DATA_MODEL_IO::format(), formatFill(), FromCSSRGBA(), FromHSL(), FromHSV(), GetBrightness(), BOARD_ADAPTER::GetColor(), FAB_LAYER_COLOR::GetColorAsString(), getDXFColorName(), TRANSLINE::Init(), Invert(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), LegacyMix(), PANEL_PREVIEW_3D_MODEL::loadSettings(), Mix(), DIALOG_COLOR_PICKER::OnChangeEditBlue(), DIALOG_COLOR_PICKER::OnResetButton(), DIALOG_COLOR_PICKER::onRGBMouseDrag(), KIGFX::operator<(), KIGFX::operator==(), DRAWING_SHEET_PARSER::parseText(), Saturate(), SCH_SEXPR_PLUGIN::saveJunction(), SCH_SEXPR_PLUGIN::saveSheet(), DIALOG_COLOR_PICKER::SetEditVals(), KIGFX::CAIRO_GAL_BASE::SetFillColor(), SetFromHexString(), SetFromWxString(), PANEL_TRANSLINE::SetPrmBgColor(), KIGFX::CAIRO_GAL_BASE::SetStrokeColor(), KIGFX::CAIRO_GAL_BASE::storePath(), ToColour(), ToHexString(), ToHSL(), ToHSV(), KIGFX::RENDER_SETTINGS::update(), RATSNEST_VIEW_ITEM::ViewDraw(), and WithAlpha().
|
static |
Definition at line 382 of file color4d.h.
Referenced by KIGFX::ANTIALIASING_SUPERSAMPLING::Begin(), KIGFX::ANTIALIASING_SMAA::Begin(), KIGFX::CAIRO_GAL::ClearTarget(), KIGFX::OPENGL_GAL::ClearTarget(), KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), KIGFX::GERBVIEW_RENDER_SETTINGS::GERBVIEW_RENDER_SETTINGS(), and KIGFX::ANTIALIASING_SMAA::Present().
|
static |
Definition at line 383 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 373 of file color4d.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::blitCursor(), KIGFX::CAIRO_GAL_BASE::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(), EXPORTER_STEP::composePCB(), CUSTOM_COLOR_ITEM::CUSTOM_COLOR_ITEM(), Darken(), Darkened(), Desaturate(), 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::drawSegmentChain(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::CAIRO_GAL_BASE::flushPath(), DS_DATA_MODEL_IO::format(), formatFill(), FromCSSRGBA(), FromHSL(), FromHSV(), GetBrightness(), BOARD_ADAPTER::GetColor(), FAB_LAYER_COLOR::GetColorAsString(), getDXFColorName(), TRANSLINE::Init(), Invert(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), LegacyMix(), PANEL_PREVIEW_3D_MODEL::loadSettings(), Mix(), DIALOG_COLOR_PICKER::OnChangeEditGreen(), DIALOG_COLOR_PICKER::OnResetButton(), DIALOG_COLOR_PICKER::onRGBMouseDrag(), KIGFX::operator<(), KIGFX::operator==(), DRAWING_SHEET_PARSER::parseText(), Saturate(), SCH_SEXPR_PLUGIN::saveJunction(), SCH_SEXPR_PLUGIN::saveSheet(), DIALOG_COLOR_PICKER::SetEditVals(), KIGFX::CAIRO_GAL_BASE::SetFillColor(), SetFromHexString(), SetFromWxString(), PANEL_TRANSLINE::SetPrmBgColor(), KIGFX::CAIRO_GAL_BASE::SetStrokeColor(), KIGFX::CAIRO_GAL_BASE::storePath(), ToColour(), ToHexString(), ToHSL(), ToHSV(), and WithAlpha().
double KIGFX::COLOR4D::r |
Red component.
Definition at line 372 of file color4d.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::blitCursor(), KIGFX::CAIRO_GAL_BASE::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(), EXPORTER_STEP::composePCB(), CUSTOM_COLOR_ITEM::CUSTOM_COLOR_ITEM(), Darken(), Darkened(), Desaturate(), 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::drawSegmentChain(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), EXPORTER_PCB_VRML::EXPORTER_PCB_VRML(), KIGFX::CAIRO_GAL_BASE::flushPath(), DS_DATA_MODEL_IO::format(), formatFill(), FromCSSRGBA(), FromHSL(), FromHSV(), GetBrightness(), BOARD_ADAPTER::GetColor(), FAB_LAYER_COLOR::GetColorAsString(), getDXFColorName(), TRANSLINE::Init(), Invert(), Inverted(), KI_TEST::IsColorNear(), KI_TEST::IsColorNearHex(), LegacyMix(), PANEL_PREVIEW_3D_MODEL::loadSettings(), Mix(), DIALOG_COLOR_PICKER::OnChangeEditRed(), DIALOG_COLOR_PICKER::OnResetButton(), DIALOG_COLOR_PICKER::onRGBMouseDrag(), KIGFX::operator<(), KIGFX::operator==(), DRAWING_SHEET_PARSER::parseText(), Saturate(), SCH_SEXPR_PLUGIN::saveJunction(), SCH_SEXPR_PLUGIN::saveSheet(), DIALOG_COLOR_PICKER::SetEditVals(), KIGFX::CAIRO_GAL_BASE::SetFillColor(), SetFromHexString(), SetFromWxString(), PANEL_TRANSLINE::SetPrmBgColor(), KIGFX::CAIRO_GAL_BASE::SetStrokeColor(), KIGFX::CAIRO_GAL_BASE::storePath(), 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 378 of file color4d.h.
Referenced by COLOR4D(), STROKE_PARAMS::Format(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), and KIGFX::SCH_PAINTER::getRenderColor().
|
static |
Definition at line 381 of file color4d.h.
Referenced by PNS_DEBUG_SHAPE::PNS_DEBUG_SHAPE().