MCPcopy Create free account
hub / github.com/VCVRack/Befaco / setCentredPos

Method setCentredPos

src/NoisePlethora.cpp:677–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675 }
676
677 void setCentredPos(Vec pos) {
678 box.pos.x = pos.x - box.size.x / 2;
679 box.pos.y = pos.y - box.size.y / 2;
680 }
681
682 void drawBackground(const DrawArgs& args) override {
683 // Background

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected