| 54 | } |
| 55 | |
| 56 | auto GetBrush( |
| 57 | double kneeX, double kneeY, const wxColor& colorAtKnee, const wxSize& size, |
| 58 | const wxGraphicsContext& gc) |
| 59 | { |
| 60 | using namespace DynamicRangeProcessorPanel; |
| 61 | constexpr auto w = .75; |
| 62 | const wxColor edgeColor = GetColorMix(backgroundColor, colorAtKnee, w); |
| 63 | |
| 64 | const auto xf = size.GetWidth() / 2.; // "f" for "focus" |
| 65 | const auto yf = size.GetHeight() / 2.; |
| 66 | const auto radius = size.GetWidth(); |
| 67 | return gc.CreateRadialGradientBrush( |
| 68 | kneeX, kneeY, xf, yf, radius, colorAtKnee, edgeColor); |
| 69 | } |
| 70 | |
| 71 | void DrawTransferFunction( |
| 72 | wxPaintDC& dc, const wxRect& rect, const CompressorSettings& settings) |
no test coverage detected