dist/claygl.es.js
function (color) {
        var canvas = document.createElement('canvas');
        canvas.width = 1;
        canvas.height = 1;
        var ctx = canvas.getContext('2d');
        ctx.fillStyle = color;
        ctx.fillRect(0, 0, 1, 1);

        var texture = new Texture2D({
            image: canvas
        });

        return texture;
    }
function (color) {
        var canvas = document.createElement('canvas');
        canvas.width = 1;
        canvas.height = 1;
        var ctx = canvas.getContext('2d');
        ctx.fillStyle = color;
        ctx.fillRect(0, 0, 1, 1);

        var texture = new Texture2D({
            image: canvas
        });

        return texture;
    }
function ( color ) { var canvas = document . createElement ( 'canvas' ) ; canvas . width = 1 ; canvas . height = 1 ; var ctx = canvas . getContext ( '2d' ) ; ctx . fillStyle = color ; ctx . fillRect ( 0 , 0 , 1 , 1 ) ; var texture = new Texture2D ( { image : canvas } ) ; return texture ; }
Create a blank pure color 1x1 texture
@param  {string} color
@return {clay.Texture2D}
Create a blank pure color 1x1 texture