WebGL (TM) Canvas Library
 

mapScale Library Method

Short Description: Scales the mapped texture

Signature: t.mapScale (f)
Group: Texture
Class: transition Class
 

Resizes the mapped texture of the current transition by the factor f.

mapScale is often used together with map and paint to paint an element much bigger than ordinary. This to increase quality in case the element is enlarged by WebGL.

Resized
Example

Examples

var a=taccgl.a("Resized").mapScale(5).paint().to(00,200,-5000).dur(4).start();
RUN
var a=taccgl.a("Resized").mapScale(5).paint().resize(50,30,500,300).dur(4).start();
RUN
var a=taccgl.a("Resized").mapScale(1).paint().resize(50,30,500,300).dur(4).start();
RUN

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:Light and Shadow
Previous Page: transition.mapClipToElement - Clips the currently mapped texture to the size of the animated object