Hi all! I’ve been working on a graph based synth where each node is either an oscillator or an fx, and the nodes are draggable. Every node is connected to the next / previous node with an arrow which I draw at the paint() function. At the moment, whenever a node is dragged the whole thing (pretty much) gets repainted and I’ve been trying (and failing) to optimize it.
And so, my question is: Is there a way to custom paint only a certain rectangle in a way that allows me to draw the arrows?
The code can be found here: