If there are other triangles in the way then the triangle is probably hidden from view so you wouldn't be able to see the colour?
Sorry but you're still not making perfect sense? Tell us what the purpose of this function would be in game.
Sorry but you're still not making perfect sense? Tell us what the purpose of this function would be in game.