Opacity Percentage?

Gordon gwalias-rev at yahoo.com
Mon Dec 6 10:12:31 EST 2004


Dear Rick

I experimented with this problem and it seems to have
a really straightforward solution (unless I
misunderstand the problem) ...

I created empty image areas on a card and then used
the "fill" tool (in the graphics tools at the bottom
of the toolbox) to fill them with colors (e.g. red,
green & blue). If I then set the "blend" property to
"on" by checking the box on the property inspector for
each image area, I could manually set their opacity
using the slider on the property inspector, or in a
script, by using a command of the form:

set the blendLevel of image "myImage" to 50

This seems to have the desired effect for creating
colored semi-transparent filters. I guess the colors
are innacurate unless you do some more fancy screen
calibration - but is this what you were trying to
achieve?

Best

Gordon




--- "Frank D. Engel, Jr." <fde101 at fjrhome.net> wrote:

> The blendLevel seems a better solution in this case,
> but getting back 
> to the handler posted at the URL below, could it not
> be simplified even 
> further:
> 
> on mouseUp
>    put empty into aData
>    put numToChar(128) into ch
> 
>    repeat for the number of chars in the alphaData
> of image 1
>      put ch after aData
>    end repeat
> 
>    set the alphaData of image 1 of aData
> end mouseUp
> 
> 
> On Dec 4, 2004, at 4:46 PM, David Kwinter wrote:
> 
> > You'll need to use images and manipulate their
> alphadata. See
> >
>
http://www.sonsothunder.com/devres/metacard/tips/imag005.htm
> >
> >
> > ----- Original Message ----- From: "Rick Harrison"
> 
> > <harrison at all-auctions.com>
> > To: "How to use Revolution"
> <use-revolution at lists.runrev.com>
> > Sent: Saturday, December 04, 2004 1:34 PM
> > Subject: Opacity Percentage?
> >
> >
> >> Hi there,
> >> I wanted to create a bunch of different color
> filters
> >> and to be able to change the opacity by
> percentages.
> >> I thought I'd use a basic rectangle and see if I
> could
> >> change the opacity so that the object beneath it
> >> shows through.
> >> So far I haven't found a way to do this in
> Revolution.
> >> Is there a way?
> >> Thanks in advance.
> >> Rick
> >> _______________________________________________
> >> use-revolution mailing list
> >> use-revolution at lists.runrev.com
> >>
>
http://lists.runrev.com/mailman/listinfo/use-revolution
> >>
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> >
>
http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> >
>
-----------------------------------------------------------
> Frank D. Engel, Jr.  <fde101 at fjrhome.net>
> 
> $ ln -s /usr/share/kjvbible /usr/manual
> $ true | cat /usr/manual | grep "John 3:16"
> John 3:16 For God so loved the world, that he gave
> his only begotten 
> Son, that whosoever believeth in him should not
> perish, but have 
> everlasting life.
> $
> 
> 
> 
>
___________________________________________________________
> $0 Web Hosting with up to 120MB web space, 1000 MB
> Transfer
> 10 Personalized POP and Web E-mail Accounts, and
> much more.
> Signup at www.doteasy.com
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
>
http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list