MCPcopy Create free account
hub / github.com/audacity/audacity / AlphaBlend

Function AlphaBlend

src/AdornedRulerPanel.cpp:2418–2427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2416}
2417
2418static inline wxColour AlphaBlend(ColorId fg, ColorId bg, double alpha)
2419{
2420 const auto &fgc = theTheme.Colour(fg);
2421 const auto &bgc = theTheme.Colour(bg);
2422 return wxColour{
2423 wxColour::AlphaBlend(fgc.Red(), bgc.Red(), alpha),
2424 wxColour::AlphaBlend(fgc.Green(), bgc.Green(), alpha),
2425 wxColour::AlphaBlend(fgc.Blue(), bgc.Blue(), alpha)
2426 };
2427}
2428
2429void AdornedRulerPanel::DoDrawBackground(wxDC * dc)
2430{

Callers 2

DoDrawOverlapMethod · 0.85
DoDrawSelectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected