MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DrawModule

Method DrawModule

Source/GateEffect.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void GateEffect::DrawModule()
89{
90 mThresholdSlider->Draw();
91 mAttackSlider->Draw();
92 mReleaseSlider->Draw();
93
94 ofPushStyle();
95 ofFill();
96 ofSetColor(0, 255, 0, gModuleDrawAlpha * .4f);
97 ofRect(5, 2, 110 * sqrtf(mPeak), 7);
98 ofSetColor(255, 0, 0, gModuleDrawAlpha * .4f);
99 ofRect(5, 9, 110 * mEnvelope, 7);
100 ofPopStyle();
101}
102
103void GateEffect::CheckboxUpdated(Checkbox* checkbox, double time)
104{

Callers

nothing calls this directly

Calls 6

ofPushStyleFunction · 0.85
ofFillFunction · 0.85
ofSetColorFunction · 0.85
ofRectFunction · 0.85
ofPopStyleFunction · 0.85
DrawMethod · 0.45

Tested by

no test coverage detected