Next version will come with Stage:setBackgroundColor and Stage:getBackgroundColor (which will be released in about 2 weeks)
Before waiting for the next version, you can keep your image a bit larger to fill the empty areas or you can add a large solid rectangle with Shapes like:
-- assume your logical dimensions are 320x480 and your stage orientation is portraitlocal background = Shape.new()
background:setFillStyle(Shape.SOLID, 0xff0000)-- fill color is red
background:beginPath()
background:moveTo(-100, -100)
background:lineTo(320+100, -100)
background:lineTo(320+100, 480+100)
background:lineTo(-100, 480+100)
background:closePath()
background:endPath()
stage:addChild(background)
Comments
Before waiting for the next version, you can keep your image a bit larger to fill the empty areas or you can add a large solid rectangle with Shapes like:
Likes: Learner
Thank you.