This site requires JavaScript, please enable it in your browser!
Greenfoot back
darkmist255
darkmist255 wrote ...

2011/12/9

Just a thought, is this possible?

darkmist255 darkmist255

2011/12/9

#
Is there a method that exists to detect if pixels with an alpha value higher than a certain amount (AKA, non-transparent pixels) are intersecting the non-transparent pixels on another actor? I'm not just talking about within the Greenfoot API. Would be very interesting if something like this existed :D. Then transparent pixels wouldn't influence intersections.
bourne bourne

2011/12/9

#
Say you got the Color at the desired pixel Color c = ...; if (c.getAlpha() == 255) // or c.getAlpha() > someNumber {}
darkmist255 darkmist255

2011/12/9

#
Possibly. Might be a project for the future :D. Thanks :D!
You need to login to post a reply.