Ok, I’ve build and loaded on device this code:
display.setStatusBar( display.HiddenStatusBar ) display.setDrawMode( "forceUpdate" ) local \_W,\_H = display.contentWidth, display.contentHeight; local \_CX,\_CY = display.contentCenterX, display.contentCenterY; local objectGradient = { type="gradient", color1={0,0.75,0.25}, color2={1,0.5,1}, direction="right" }; local objectMask = graphics.newMask( "circlemask.png" ); local object = display.newRect(0,0,200,200); object.fill = objectGradient; object.anchorX = 0.5; object.anchorY = 0.5; object.x = \_CX; object.y = \_CY; object:setMask( objectMask ); object.fill.effect = "filter.blurGaussian"; object.fill.effect.horizontal.radius = 3; object.fill.effect.vertical.radius = 3; local function updateFX(event) local value = math.abs( math.sin(event.time\*0.01) ); object.fill.effect.horizontal.radius = 3 - value; object.fill.effect.vertical.radius = 3 + value; end Runtime:addEventListener("enterFrame", updateFX);
Now i can see the difference on my iPhone 4S but i can’t see the “processed” object on the simulator, maybe because of the computer hardware? Can you see the circle on the simulator using this configuration?
build.settings
settings = { orientation = { default = "landscape", supported = { "landscapeLeft", "landscapeRight" } }, iphone = { plist = { UIApplicationExitsOnSuspend=true, UIHiddenStatusBar= true, CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-72.png", "Icon-72@2x.png", }, }, }, }
config.lua
application = { content = { width = 320, height = 480, scale = "letterbox" }, }