SKSpriteNode
is new to me. For the image below, I am wondering what are some ways I can get the rect of the non-transparent part using sprite kit.
Asked
Active
Viewed 158 times
0

danny huang
- 155
- 9
-
What do you mean by detect? – godel9 Dec 05 '13 at 04:08
-
like get the rect of the blue parts – danny huang Dec 05 '13 at 04:55
-
You want the minimum `CGRect` that contains all the points with non-zero alpha? – godel9 Dec 05 '13 at 04:58
-
Yes, thats exactly what i want – danny huang Dec 05 '13 at 05:00