Hello everyone. I have a question here. Say I have a regular polygon I have drawn using display.polygon(x, y, vertices), and I have drawn it with a border. According to the Corona documentation on shapes with borders, it does affect the width of the shape. The thing I need to know is how I can find, in pixels, how much the border is adding to the polygon’s apothem (a line drawn from the center of the polygon to one of the sides where it intersects the edge at a right angle). If anybody could help me out here I would appreciate it. Thanks!
This is actually quite a complex subject. Possibly the easiest thing to do is calculate the area of the initial polygon and then the area of the resulting polygon, but how I’m not sure. Possibly generate mask images might help.
This is actually quite a complex subject. Possibly the easiest thing to do is calculate the area of the initial polygon and then the area of the resulting polygon, but how I’m not sure. Possibly generate mask images might help.