Brush component drawing in -x -y cursor direction

OS Windows 10:
PsychoPy version : 2021.2.3
What are you trying to achieve?:
I have a brush component in an experiment and I want to make the brush draw the line in the opposite direction than the cursor’s movement.

Basically to go -x -y axis with the starting point when the click is pressed and held.

What did you try to make it work?:
I think I know how it should work but I don’t seem to be able to implement it.

I assume I need to set a variable with the cursor position when the mouse is clicked and have that as the starting point of the brush.

Then I should say autodraw but don’t know how to say to go the opposite direction.