blackedout blends on mobile? [solved]

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

blackedout blends on mobile? [solved]

Post by SteveTX » Sun Jul 07, 2013 6:40 pm

I am attempting to fade a transparent field of white text. My script fires off messages to the card to incrementally increase the transparency blend from 0 to 100. On desktop/IDE this works fine. On mobile the entire field immediately becomes opaque and black. Are blends not designed to work on mobile? Is there something wrong with this?

Code: Select all

command fadeText theField
   put 2000 into effectTime
   put 20 into effectSteps
   set the blendLevel of field theField to 0
   set the ink of field theField to "blendClear"
   repeat with i = 1 to effectSteps
      put the round of (i * (100 / effectSteps)) into theFade
      send "fadeIt theField, theFade" to this card in ((effectTime/effectSteps) * i) milliseconds
   end repeat
end fadeText

command fadeIt theField theFade
   debugIt (" effect fadeIt acting upon field " & theField & tab & " with blendlevel " & theFade)
   set the blendLevel of field theField to theFade
end fadeIt
Last edited by SteveTX on Mon Jul 08, 2013 9:34 am, edited 1 time in total.

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: blackedout blends on mobile?

Post by SteveTX » Sun Jul 07, 2013 7:06 pm

More info. I can nearly duplicate the issue on desktop by setting the compositorType to "software". On desktop the text in the field doesn't show at all, the field is fully opaque black and simply blends away.

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: blackedout blends on mobile?

Post by SteveTX » Sun Jul 07, 2013 7:37 pm

Solved mostly. Selected wrong ink. Should have been blendSrcOver.

Post Reply