Canvas Library

blend Library Method

Short Description: Set transparency values/set up blend animation

Signature: x.blend (f,s,[f1],[s1])
Group: Texture
Class: Material Class

By using blend and one of the map methods a texture for the material can be selected. blend is used to select a Texture Canvas and the map functions are used to select the relevant part of that Texture Canvas.

f and s are opacity values for the first and second Texture Canvas. Per default f=1 and s=0, i.e. the texture canvas is fully visible and the alternate canvas is fully transparent i.e. invisible. For general values of s and f the second or Alternate Canvas is painted on top of the first canvas, and so has priority and is shown e.g. if s=1.

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:taccglMaterial.mapActor - Map other HTML element and paint
Previous Page: taccglMaterial.specLight - Set specular light factor and shininess