Hi @rune7,
There’s not a way to internally detect transparency, but I think you could achieve this basic behavior in a different manner: create a separate large “grid” of squares (vector rectangles) which are transparent but hit-sensitive (.isHitTestable) and overlay the entire image with enough of these squares to cover it entirely. Basically, imagine it like an invisible piece of graph paper overlaying the image. Then, as the user erases over the image, use separate functionality to detect where the touch is and, as the user touches/drags over these invisible squares, remove them and count how many have been removed in total. Based on the total number of squares and the number that have been removed, do the math and figure out when a certain percentage has been cleared. When that occurs, you know that the drawing has been sufficiently “cleared”.
Hope this helps,
Brent