HTML5 Canvas 3D WebGL (TM) javaScript Library

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"eximg").alpha(0.5).start(); RUN"eximg").alpha(0.5).bgColor("red").start(); RUN"eximg").alpha(0,1).start(); RUN"eximg").alpha(1,0).start(); RUN"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.

Next Page:transition.color - Set color / color animation
Previous Page: Texture