Canvas Library

mapElement Library Method

Short Description: Map other HTML element

Signature: x.mapElement (el)
Group: Texture
Class: Material Class

Selects an image of the given element as texture for the current material. Works like mapActor but does not paint the element. el may be a DOM node or a string giving the id of the intended element.

Next - Map rectangular portion of texture canvas
Previous Page: taccglMaterial.mapActor - Map other HTML element and paint