HTML5+CSS on Canvas 3D WebGL (TM) Library
 

map Library Method

Short Description: Map rectangular portion of texture canvas

Signature: x.map (s,t,w,h) or (l,r)
Group: Texture
Class: Material Class
 

Selects a rectangular portion of the Texture Canvas as texture for the material. (s,t) specify the coordinates of the top left point of the portion. w is the with and h the height. See map for a complete description.

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:taccglMaterial.mapTo - Animate mapped portion of texture canvas
Previous Page: taccglMaterial.mapElement - Map other HTML element