Workaround Option Request
Scott Slaugh
xslaugh at hotmail.com
Tue Sep 9 22:55:00 EDT 2003
>Ideally I (we) need to be able to apply the blendLevel to draw graphics but
>since the Rev folks probably won't get to this any time soon, has anyone
>found a creative way to build an irregularly shaped translucent object?
I'm not so sure how this would work with an irregular object, but I have a
solution that works very well with a circle, which would seem to me to be
what you want with a flashlight beam. To get this to work, you need to
create a circle graphic. Then go into the property inspector, and change
the width and height of it to something well in excess of the screen size
(I'm using 3000 for both the width and height for this example). Then go
back to the Basic Properties of the inspector window for the graphic. Set
the opaque of the graphic to false, and then play with the border size until
you get the size of hole that you want. For example, if you set the border
size of a 3000x3000 circle to 1400, you get a 400 pixel wide hole. Anything
under the border can't be seen, but anything under the hole shows through.
The drag speed seems to work fine on this graphic.
Now, I wasn't quite sure if this is what you wanted to do from reading your
email, but if you want the "flashlight" to be semi-transparent instead of
completely transparent, you could simply place a PNG at the desired
transparency level on the layer right below the flashlight graphic.
I have a stack I've made that demos this "flashlight" effect that I could
email to anyone interested. Just send me a quick note, and I'll try to get
it to you relatively quickly.
Scott Slaugh
_________________________________________________________________
Compare Cable, DSL or Satellite plans: As low as $29.95.
https://broadband.msn.com
More information about the use-livecode
mailing list