filter.radialWipe works well on ipad4(7.0.4), but it keeps flashing on ipad air(7.1.2).
display.setStatusBar( display.HiddenStatusBar ) local halfW = display.contentWidth \* 0.5 local halfH = display.contentHeight \* 0.5 local font = (platform ~= "Android") and "MarkerFelt-Wide" or system.nativeFont; -- Show entire list of effects -- local t = graphics.listEffects( "filter" ) -- print( 'listEffects', t, type(t) ) -- for k,v in pairs( t ) do -- print( k, v ) -- end local group = display.newGroup() local w,h = 320,320 local x,y = w/2, h/2 local effectNumber = 1 local effects = { { filterNumber = 20, name = "filter.radialWipe", params = { progress = 0, }, low = -1, high = 1, increment = 0.01 } } local function setEffect( effect, filter, t ) local params = filter.params if params then for k,v in pairs( filter.params ) do effect[k] = t --v \* t -- print(t) end end end -- Some filter effects are time based (e.g. swirl), -- so force Corona to re-blit them. --display.setDrawMode( "forceUpdate" ) local amount = 0.00 local goingUp = true local image = display.newImageRect( "aquariumbackgroundIPhone.jpg", w, h ) image.x = 150 image.y = 150 group:insert( image ) -- image:translate( x + w\*(1), y + h\*(1) ) local filterText = display.newText("Filter Name", 100, 350, font, 24) local function changeParams() if amount \< effects[effectNumber].high and goingUp == true then amount = amount + effects[effectNumber].increment -- print(amount) elseif amount \>= effects[effectNumber].high then goingUp = false amount = (effects[effectNumber].high-0.01) elseif amount \< effects[effectNumber].low then goingUp = true amount = (effects[effectNumber].low+0.01) effectNumber = effectNumber +1 if effectNumber\>#effects then effectNumber =1 end print('filter changed to '..effects[effectNumber].name) else amount = amount - effects[effectNumber].increment -- print(amount) end local filter = effects[effectNumber] image.fill.effect = filter.name filterText.text = effects[effectNumber].filterNumber.." "..filter.name filterText.x = halfW setEffect( image.fill.effect, filter, amount ) end Runtime:addEventListener("enterFrame", changeParams)