alpha Library Method
Short Description: Set Texture Opacity
Signature: t.alpha (a,a1)
Group: Texture
Class: transition Class
Sets the alpha, also called opacity, value of the texture of the transition.
The background color is not effected. Values range from 0.0 (fully transparent) to 1.0 (fully visible).
If two parameters are given then an animation from the first to the second
alpha value is performed.
Examples
taccgl.actor("eximg").alpha(0.5).start(); | RUN |
taccgl.actor("eximg").alpha(0.5).bgColor("red").start(); | RUN |
taccgl.actor("eximg").alpha(0,1).start(); | RUN |
taccgl.actor("eximg").alpha(1,0).start(); | RUN |
taccgl.actor("eximg").alpha(1,0).bgColor("red").start(); | RUN |
The methods alpha and blend are mutually
exclusive, the last one called is taking effect.
WebGL™ is a trademark of the Khronos Group Inc.
|