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

Method paint

VASTvaporizer/Source/Plugin/VASTWaveTableEditorComponent.cpp:157–181  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

155
156//==============================================================================
157void VASTWaveTableEditorComponent::paint (juce::Graphics& g)
158{
159 //[UserPrePaint] Add your own custom painting code here..
160 //[/UserPrePaint]
161
162 g.fillAll (juce::Colour (0xff323e44));
163
164 {
165 int x = 0, y = 0, width = getWidth() - 0, height = getHeight() - 0;
166 juce::Colour fillColour1 = juce::Colour (0x4fa2a7b5), fillColour2 = juce::Colour (0xbd141618);
167 //[UserPaintCustomArguments] Customize the painting arguments here..
168 //[/UserPaintCustomArguments]
169 g.setGradientFill (juce::ColourGradient (fillColour1,
170 static_cast<float> (proportionOfWidth (-0.0400f)) - 0.0f + x,
171 static_cast<float> (proportionOfHeight (-0.0154f)) - 0.0f + y,
172 fillColour2,
173 static_cast<float> (proportionOfWidth (0.9467f)) - 0.0f + x,
174 static_cast<float> (proportionOfHeight (1.0615f)) - 0.0f + y,
175 false));
176 g.fillRect (x, y, width, height);
177 }
178
179 //[UserPaint] Add your own custom painting code here..
180 //[/UserPaint]
181}
182
183void VASTWaveTableEditorComponent::resized()
184{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected