Source/PluginEditor.cpp
/*
 This function is where all the graphics of the response curve component will be
 */
This function is where all the graphics of the response curve component will be
This function is where all the graphics of the response curve component will be
void ResponseCurveComponent::paint (juce::Graphics& g)
{
    using namespace juce;
    g.fillAll (Colours::darkviolet);
    drawBackgroundGrid(g);
    auto responseArea = getAnalysisArea();
    if( shouldShowFFTAnalysis )
    {
        auto leftChannelFFTPath = leftPathProducer.getPath();
        leftChannelFFTPath.applyTransform(AffineTransform().translation(responseArea.getX(), responseArea.getY()));
        g.setColour(Colour(97u, 18u, 167u)); 
        g.strokePath(leftChannelFFTPath, PathStrokeType(1.f));
        auto rightChannelFFTPath = rightPathProducer.getPath();
        rightChannelFFTPath.applyTransform(AffineTransform().translation(responseArea.getX(), responseArea.getY()));
        g.setColour(Colour(juce::Colours::black));
        g.strokePath(rightChannelFFTPath, PathStrokeType(1.f));
    }
    g.setColour(Colours::white);
    g.strokePath(responseCurve, PathStrokeType(2.f));
    Path border;
    border.setUsingNonZeroWinding(false);
    border.addRoundedRectangle(getRenderArea(), 4);
    border.addRectangle(getLocalBounds());
    g.setColour(Colours::black);
    g.fillPath(border);
    drawTextLabels(g);
    g.setColour(Colours::orange);
    g.drawRoundedRectangle(getRenderArea().toFloat(), 4.f, 1.f);
}
void ResponseCurveComponent :: paint ( juce :: Graphics & g ) { using namespace juce ; g . fillAll ( Colours :: darkviolet ) ; drawBackgroundGrid ( g ) ; auto responseArea = getAnalysisArea ( ) ; if ( shouldShowFFTAnalysis ) { auto leftChannelFFTPath = leftPathProducer . getPath ( ) ; leftChannelFFTPath . applyTransform ( AffineTransform ( ) . translation ( responseArea . getX ( ) , responseArea . getY ( ) ) ) ; g . setColour ( Colour ( 97u , 18u , 167u ) ) ; g . strokePath ( leftChannelFFTPath , PathStrokeType ( 1.f ) ) ; auto rightChannelFFTPath = rightPathProducer . getPath ( ) ; rightChannelFFTPath . applyTransform ( AffineTransform ( ) . translation ( responseArea . getX ( ) , responseArea . getY ( ) ) ) ; g . setColour ( Colour ( juce :: Colours :: black ) ) ; g . strokePath ( rightChannelFFTPath , PathStrokeType ( 1.f ) ) ; } g . setColour ( Colours :: white ) ; g . strokePath ( responseCurve , PathStrokeType ( 2.f ) ) ; Path border ; border . setUsingNonZeroWinding ( false ) ; border . addRoundedRectangle ( getRenderArea ( ) , 4 ) ; border . addRectangle ( getLocalBounds ( ) ) ; g . setColour ( Colours :: black ) ; g . fillPath ( border ) ; drawTextLabels ( g ) ; g . setColour ( Colours :: orange ) ; g . drawRoundedRectangle ( getRenderArea ( ) . toFloat ( ) , 4.f , 1.f ) ; }
This function is where all the graphics of the response curve component will be
This function is where all the graphics of the response curve component will be
// (Our component is opaque, so we must completely fill the background with a solid colour)
 ///this is to move the fft path to the x, y of  the response area instead of the x,y of the plugin
 //purple-
 /*215u, 201u, 134u*/