function (src, data, cb) {
    var texture;
    texture = new THREE.CanvasTexture(src);
    setTextureProperties(texture, data);
    cb(texture);
  }
function (src, data, cb) {
    var texture;
    texture = new THREE.CanvasTexture(src);
    setTextureProperties(texture, data);
    cb(texture);
  }
function ( src , data , cb ) { var texture ; texture = new THREE . CanvasTexture ( src ) ; setTextureProperties ( texture , data ) ; cb ( texture ) ; }
High-level function for loading canvas textures (THREE.Texture).

@param {Element|string} src - Texture source.
@param {object} data - Texture data.
@param {function} cb - Callback to pass texture to.
High - level function for loading canvas textures ( THREE . Texture ) .
Create a texture from a canvas