Background repeat

Hello,

Is it possible to repeat an background image in an object? Just like the ‘background-repeat’ property on CSS. I want to create dynamic size objects, and this would be easier with this property.

Thanks,
Fabio [import]uid: 25931 topic_id: 5693 reply_id: 305693[/import]

What kind of pattern are you using, like a 1px fade graphic or 50X50 tile?

I think you can stretch the 1px over the whole thing by using:

local stageHeight = display.contentHeight
local stageWidth = display.contentWidth

display.newImageRect( “IMAGE.JPG”, stageWidth , stageHeight )
or just make a background the size of the resolution?

But as a 50X50 tile i’m not really sure, but as i don’t think you can define an object as a background like you do in CSS…

[import]uid: 9577 topic_id: 5693 reply_id: 19557[/import]

It would be more like the 50x50 tile. I want to create scanlines, for example.

I couldn’t find out how to do this. I think it’s not possible. Corona developers should consider this feature in a future release. [import]uid: 25931 topic_id: 5693 reply_id: 19558[/import]

i believe bitmapfill has been requested. have a look in the “feature requests” forum, if not add it!

[import]uid: 6645 topic_id: 5693 reply_id: 19798[/import]