![](https://lemmy.blahaj.zone/pictrs/image/af17e2d5-5987-4101-824c-a951fd98a954.png)
![](https://lemmy.world/pictrs/image/44bf11eb-4336-40eb-9778-e96fc5223124.png)
Honestly, that’s tough, but fair. No therapeutic tool is going to be a magic bullet solution for everyone.
My wife struggles with something similar. When we try to walk through an exercise together she thinks it’s about saying that her problems are “all in her head.” For my own outlook, I liken it to thinking that although my thoughts might be faulty, my feelings are valid. But hey, I’m not an authority, I’m just another struggling human trying to make sense of it all.
For what it’s worth, one stranger to another, I think that whatever you’re going through you’re totally valid. I hope you find or have found some relief - goodness knows we’re still looking
My approach would involve using some kind of polygon library. When you draw lines, you’re really defining polygons within your canvas. In the case of regions B and C, the edge of the screen make up the rest of the polygon.
Once you have your polygons defined, you can compare the coordinates of the click event to the polygons. With a good library, it should be fairly trivial to check if a point is within a polygon.
In the case of region A, you’d find that a click is inside both region A and region B, so I guess I’d also check to see if there are multiple polygons a click could be inside. If there are, then you need to also see if a polygon is inside another polygon to determine the specific polygon clicked. This is also made much simpler by using a good library