One of our goals with the new graphics engine is to enable vector graphics in Corona. We’re aiming for Illustrator-level capabilities that’s going to give you a new level of expressiveness in app development.
Things get incredibly interesting when you can seamless combine vector capabilities and raster imaging features together.
To give you an idea, one thing we’re doing is letting you place images inside vector shapes. To do that we’re adding a new ‘fill’ property to shape objects that let’s you easily specify the fill image via a table. Here’s a rounded rectangle with our trusty Fishies background image inside of it:
local x,y=display.contentCenterX, display.contentCenterY
local bkgd = display.newRoundedRect( x, y, 160, 160, 20 )
bkgd.fill = type="image", filename="aquariumbackgroundIPhone.jpg"
bkgd.strokeWidth = 10
bkgd:setStrokeColor( 255, 255, 0 )