Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Understanding alpha



Check the sprite "Blending" mode. You need "Blend: Over" for alpha to change the transparency of your sprite.

Hope that works for you,
- Aaron.

On 25-Aug-05, at 9:33 PM, Tom Bernard wrote:

I understood the alpha component of a color to express the visibility of the
color. An alpha of 1.0 will render the color opaquely, an alpha of 0.0 will
make the color invisible and an alpha of 0.5 will render the color with the
background visible through the color.


So why does Quartz Composer sometimes follow the above and at other times
render an alpha of 0.0 as black.


I refer to

bersearch.com/MacOSXSoftware/TomsQCCompositions/ ColorTransformation.zip

In this quick sample, I started with a Clear patch set to clear the patch to
a light gray with an alpha of 1.0. Then I added a Sprite. To the sprite, I
connected a Color Transformation. I set the initial color of the Color
Transformation to a light blue with an alpha of 1.0. Then I connected two
Interpolation patches to the Color Transformation; the first Interpolation
ranges from 0.0 to 360.0 and drives the Hue Rotation. The second
Interpolation ranges from 0.0 to 1.0 and drives the Alpha Factor. I was
expecting the Sprite to gradually fade in from totally invisible to the
color of the moment. Instead, the Sprite goes from black to the color of the
moment.


Thanks in advance.

Tom Bernard
email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/videogamer %40shaw.ca


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Understanding alpha (From: Tom Bernard <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.