Hello,
I am trying to transition a rects aperture to 1. While it works on newer devices, on the iPad air 1st and 2nd generation it inverts rapidly.
here is the code for the rect and transition
local irisRect = display.newRect(display.screenOriginX + \_x,display.screenOriginY + display.screenOriginY + \_y + 2, display.viewableContentWidth , display.viewableContentHeight ) irisRect:setFillColor(0, 0, 0, 1) irisRect.anchorX, irisRect.anchorY = 1, 1 irisRect.fill.effect = "filter.iris" irisRect.fill.effect.center = { 0.5, 0.5 } -- local info = system.getInfo("architectureInfo") -- if string.find(info, "iPhone11,6" ) or string.find(info, "iPhone10,6" ) or string.find(info, "iPhone10,3" ) or string.find(info, "iPhone11,8" ) or string.find(info, "iPhone11,2" ) or string.find(info, "iPhone11,4" ) then irisRect.fill.effect.center = { 0.5, 0.6 } irisRect.height = irisRect.height + 5 --end irisRect.fill.effect.aperture = 0.3 \* scale irisRect.fill.effect.aspectRatio = ( irisRect.width / irisRect.height ) irisRect.fill.effect.smoothness = 0
transition.to(irisRect.fill.effect, {time = duration, aperture = 1})
If someone has any idea why it runs smoothly on newer devices but glitches/inverting on some older devices I would like to hear it.
Thanks in advance!