Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subcomponents don't multiply with parent's alpha #7

Closed
wchargin opened this issue Oct 17, 2013 · 0 comments
Closed

Subcomponents don't multiply with parent's alpha #7

wchargin opened this issue Oct 17, 2013 · 0 comments
Assignees
Labels

Comments

@wchargin
Copy link
Owner

A GObject is painted strictly with its own alpha. This means that a parent component with alpha < 1 can have children painted at full opacity, e.g.:

GContainer container = ...;
GObject object = ...;
container.add(object);
// Fade out
container.setAlpha(0.5);

Because object's alpha remains the default 1.0, it is painted at full opacity even though its container has decreased in opacity.

This affects controllers and tweens as well.

@ghost ghost assigned wchargin Oct 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant