Desktop visual effect

Peter M. Brigham pmbrig at gmail.com
Fri Jan 18 17:36:47 EST 2013


On Jan 18, 2013, at 2:18 PM, Scott Rossi wrote:

> One simulated effect I've done is to create a loop that progressively sets
> the blendLevel of a stack, which results in fading the stack in (or out
> of) the desktop.

Here's from the script of the first card of a splash stack that I use:

on openstack
   fadeIn
end openstack

on closeStack
   fadeOut
end closeStack

on fadeIn
  repeat with n = 100 down to 0
    set the blendlevel of this stack to n
    wait 7 millisecs
  end repeat
  pass openstack
end fadeIn

on fadeOut
   unlock screen
   repeat with n = 0 to 100
      set the blendlevel of this stack to n
      wait 7 millisecs
   end repeat
   set the blendlevel of this stack to 100
end fadeOut

Adjust the wait period ad lib.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list