brdybrbnk
brdybrbnk

Reputation: 13

Create a circular image?

I'm using Corona SDK to develop mobile apps. I'm trying to create a ball (in Photoshop CS6) and when I save it as a .png, it registers the corners of the rectangular file, how can I get it so it's just the image and not the transparent corners?

Upvotes: 1

Views: 399

Answers (1)

Radu Diță
Radu Diță

Reputation: 14171

When you draw an image in corona it's treated as a rectangle.

If you want to use the element in physics and you want it to be treated as a circle instead of a rectangle you can specify the radius when adding the body.

You can read about it here, more exactly the circular body example.

Upvotes: 1

Related Questions