MCPcopy Create free account
hub / github.com/VASTDynamics/Vaporizer2 / paint

Method paint

VASTvaporizer/Source/Plugin/VASTSidePanelComponent.cpp:326–352  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

324
325//==============================================================================
326void VASTSidePanelComponent::paint (juce::Graphics& g)
327{
328 //[UserPrePaint] Add your own custom painting code here..
329 //[/UserPrePaint]
330
331 g.fillAll (juce::Colour (0xff323e44));
332
333 {
334 int x = 0, y = 0, width = getWidth() - 0, height = getHeight() - 0;
335 juce::Colour fillColour1 = juce::Colour (0xff212527), fillColour2 = juce::Colour (0xff0b0b0b);
336 //[UserPaintCustomArguments] Customize the painting arguments here..
337 fillColour1 = myProcessor->getCurrentVASTLookAndFeel()->findVASTColour(VASTColours::colOscillatorComponentBackgroundGradientFrom);
338 fillColour2 = myProcessor->getCurrentVASTLookAndFeel()->findVASTColour(VASTColours::colOscillatorComponentBackgroundGradientTo);
339 //[/UserPaintCustomArguments]
340 g.setGradientFill (juce::ColourGradient (fillColour1,
341 static_cast<float> (proportionOfWidth (-0.0556f)) - 0.0f + x,
342 static_cast<float> (proportionOfHeight (0.5073f)) - 0.0f + y,
343 fillColour2,
344 static_cast<float> (proportionOfWidth (1.1111f)) - 0.0f + x,
345 static_cast<float> (proportionOfHeight (0.5561f)) - 0.0f + y,
346 false));
347 g.fillRect (x, y, width, height);
348 }
349
350 //[UserPaint] Add your own custom painting code here..
351 //[/UserPaint]
352}
353
354void VASTSidePanelComponent::resized()
355{

Callers

nothing calls this directly

Calls 2

findVASTColourMethod · 0.45

Tested by

no test coverage detected