This seems to approximate the screenshot posted above:
-- == -- hexcolor( ) - converts hex color codes to rgba Graphics 2.0 value -- == local function hexcolor( code ) code = code and string.gsub( code , "#", "") or "FFFFFFFF" code = string.gsub( code , " ", "") local colors = {1,1,1,1} while code:len() \< 8 do code = code .. "F" end local r = tonumber( "0X" .. string.sub( code, 1, 2 ) ) local g = tonumber( "0X" .. string.sub( code, 3, 4 ) ) local b = tonumber( "0X" .. string.sub( code, 5, 6 ) ) local a = tonumber( "0X" .. string.sub( code, 7, 8 ) ) local colors = { r/255, g/255, b/255, a/255 } return colors end local sqrt2 = math.sqrt(2) local paint = { type = "gradient", color1 = hexcolor("#a336b7"), color2 = hexcolor("#f47935"), direction = "down" } local rect = display.newRect( display.contentCenterX, display.contentCenterY, display.actualContentWidth \* sqrt2, display.actualContentWidth \* sqrt2 ) rect.rotation = 45 rect.fill = paint

This can be further refined by changing the rotation, position, and size of rect.