Question I need some Help - Drawing, Filling, Painting

Apichafoko

New member
Joined
Feb 2, 2022
Messages
1
Programming Experience
5-10
Hi everyone, I need to know which one is the best tool that I should use for my project. Basically, the goal of the App is that the user could select/paint/highlight or something similar any part of the human body and that the app could recognize which part the user touched and then do some stuff with that.

I would be really grateful if you could help me So I could start working on it.

Thanks in advance.
 
The problem you are trying to solve is called "hit testing". You are trying to see what parts of the screen the user hit. The areas on the screen will correspond to whatever you have displayed on the screen. It has nothing to do with drawing, filling, or painting. You could use drawing/filling/painting to give the user some feedback.

Basically, you just need to get the coordinates of where the user touched and then compare against a big list of regions to see if the coordinates are within those regions. Most computer graphics books cover this topic of hit testing.
 

Latest posts

Back
Top Bottom