On Fri, 2009-05-22 at 18:17 +0200, Jordi Hernández Puigdellívol wrote: > @ NeilRoberts: > The file you gave me is currently doing that? > > I see the test_black_texture_paint function that overrides the paint > one but I can't understand it completely, does that mix the black > texture depending on the opacity property? > that would be exactly what I need
The example combines the texture with a 50% gray color. The 0x80,0x80,0x80 part is the 50% gray color. You would probably want to change that to be a property of the object rather than a constant; then you could use it with the animation API. The opacity is not needed to implement the effect so it is just taken directly from clutter_actor_get_paint_opacity. - Neil -- To unsubscribe send a mail to [email protected]
