Lets say I have some image that just have some shapes on white background
with knowing some x,y point I want to fill it with by replacing white inside the shape (if x,y is inside the shape)
Basically like image editors do it with paint bucket tool
is there something built-in ? if not - what coulbe the algorithm name for such case ?