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

Function GetColorMix

src/effects/DynamicRangeProcessorPanelCommon.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26wxColor GetColorMix(const wxColor& a, const wxColor& b, double aWeight)
27{
28 return wxColor(
29 a.Red() * aWeight + b.Red() * (1 - aWeight),
30 a.Green() * aWeight + b.Green() * (1 - aWeight),
31 a.Blue() * aWeight + b.Blue() * (1 - aWeight),
32 a.Alpha() * aWeight + b.Alpha() * (1 - aWeight));
33}
34
35float GetGraphDbRange(int height)
36{

Callers 5

GetBrushFunction · 0.85
OnPaintMethod · 0.85
PaintMeterMethod · 0.85
GetGraphBackgroundBrushFunction · 0.85
OnPaintMethod · 0.85

Calls 1

wxColorClass · 0.85

Tested by

no test coverage detected