Source/PluginEditor.cpp
//==============================================================================
///this method contains processes of the GUI

this method contains processes of the GUI
this method contains processes of the GUI
void SimpleEQAudioProcessorEditor::paint(juce::Graphics &g)
{
    using namespace juce;
    g.fillAll (Colours::black);
    Path curve;
    auto bounds = getLocalBounds();
    auto center = bounds.getCentre();
    g.setFont(Font("Iosevka Term Slab", 30, 0)); 
    String title { "BAMS LOW/HIGH PASS" };
    g.setFont(30);
    auto titleWidth = g.getCurrentFont().getStringWidth(title);
    curve.startNewSubPath(center.x, 32);
    curve.lineTo(center.x - titleWidth * 0.45f, 32);
    auto cornerSize = 20;
    auto curvePos = curve.getCurrentPosition();
    curve.quadraticTo(curvePos.getX() - cornerSize, curvePos.getY(),
                      curvePos.getX() - cornerSize, curvePos.getY() - 16);
    curvePos = curve.getCurrentPosition();
    curve.quadraticTo(curvePos.getX(), 2,
                      curvePos.getX() - cornerSize, 2);
    curve.lineTo({0.f, 2.f});
    curve.lineTo(0.f, 0.f);
    curve.lineTo(center.x, 0.f);
    curve.closeSubPath();
    g.setColour(Colour(97u, 18u, 167u));
    g.fillPath(curve);
    curve.applyTransform(AffineTransform().scaled(-1, 1));
    curve.applyTransform(AffineTransform().translated(getWidth(), 0));
    g.fillPath(curve);
    g.setColour(Colour(255u, 154u, 1u));
    g.drawFittedText(title, bounds, juce::Justification::centredTop, 1);
    g.setColour(Colours::grey);
    g.setFont(14);
    g.drawFittedText("LowCut", lowCutSlopeSlider.getBounds(), juce::Justification::centredBottom, 1);
    g.drawFittedText("Peak", peakQualitySlider.getBounds(), juce::Justification::centredBottom, 1);
    g.drawFittedText("HighCut", highCutSlopeSlider.getBounds(), juce::Justification::centredBottom, 1);
}
void SimpleEQAudioProcessorEditor :: paint ( juce :: Graphics & g ) { using namespace juce ; g . fillAll ( Colours :: black ) ; Path curve ; auto bounds = getLocalBounds ( ) ; auto center = bounds . getCentre ( ) ; g . setFont ( Font ( " " , 30 , 0 ) ) ; String title { " " } ; g . setFont ( 30 ) ; auto titleWidth = g . getCurrentFont ( ) . getStringWidth ( title ) ; curve . startNewSubPath ( center . x , 32 ) ; curve . lineTo ( center . x - titleWidth * 0.45f , 32 ) ; auto cornerSize = 20 ; auto curvePos = curve . getCurrentPosition ( ) ; curve . quadraticTo ( curvePos . getX ( ) - cornerSize , curvePos . getY ( ) , curvePos . getX ( ) - cornerSize , curvePos . getY ( ) - 16 ) ; curvePos = curve . getCurrentPosition ( ) ; curve . quadraticTo ( curvePos . getX ( ) , 2 , curvePos . getX ( ) - cornerSize , 2 ) ; curve . lineTo ( { 0.f , 2.f } ) ; curve . lineTo ( 0.f , 0.f ) ; curve . lineTo ( center . x , 0.f ) ; curve . closeSubPath ( ) ; g . setColour ( Colour ( 97u , 18u , 167u ) ) ; g . fillPath ( curve ) ; curve . applyTransform ( AffineTransform ( ) . scaled ( -1 , 1 ) ) ; curve . applyTransform ( AffineTransform ( ) . translated ( getWidth ( ) , 0 ) ) ; g . fillPath ( curve ) ; g . setColour ( Colour ( 255u , 154u , 1u ) ) ; g . drawFittedText ( title , bounds , juce :: Justification :: centredTop , 1 ) ; g . setColour ( Colours :: grey ) ; g . setFont ( 14 ) ; g . drawFittedText ( " " , lowCutSlopeSlider . getBounds ( ) , juce :: Justification :: centredBottom , 1 ) ; g . drawFittedText ( " " , peakQualitySlider . getBounds ( ) , juce :: Justification :: centredBottom , 1 ) ; g . drawFittedText ( " " , highCutSlopeSlider . getBounds ( ) , juce :: Justification :: centredBottom , 1 ) ; }
this method contains processes of the GUI
this method contains processes of the GUI
///the color of the background of the plugin
 //https://github.com/be5invis/Iosevka
 ///Text for the hig, low, and peak filters in the GUI
 ////this code will show the date the project was created
 //auto buildDate = Time::getCompilationDate().toString(true, false);
 //auto buildTime = Time::getCompilationDate().toString(false, true);
 //g.setFont(12);
 //g.drawFittedText("Build: " + buildDate + "\n" + buildTime, highCutSlopeSlider.getBounds().withY(6), Justification::topRight, 2);
