Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What would be the easiest way to draw a thin border around a display object in Corona Lua?

You could assume it's rectangular image display object.

EDIT - re "this question shows no research effort. You should tell us what you've tried and how it didn't work"

  • Reviewed API and could not find a "border" method/property on displayObject
  • Have tried creating a black box slightly bigger behind object, however can not see how to place object behind an existing object hence question How do I move an existing display object behind another in Corona Lua?
  • Google results for putting a border around a display object in corona didn't help
share|improve this question
-1 this question shows no research effort. You should tell us what you've tried and how it didn't work. – Byte56 Apr 16 '12 at 2:51
@Byte56 - added to main question – Greg Apr 16 '12 at 6:14
Thanks, down-vote removed. – Byte56 Apr 16 '12 at 13:59
up vote 0 down vote accepted

We have display option available now. You can set strokeWidth & setStrokeColor based on your requirement for display objects.

Here is the help link:


Regards, HBK

share|improve this answer

You can add an object behind another. Just add the black object (the border) first and then your main object. If you are using physics you have to set some flags so the 2 objects don't collide. Why don't you just add a sprite for your object (png, jpg) ?

share|improve this answer
was really more from trying to understand what is possible in Lua/Corona - so I guess there's no API/SDK method then to do this... – Greg Apr 16 '12 at 22:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.