index.js
function NoiseSampler(size) {
        if (!size)
            throw "no size specified to NoiseSampler";

        this.size = size;   
        this.scale = 1;
        this.offset = 0;
        this.smooth = true;
        this.seamless = false;

        // this.scales = [
        //     10, 0.1, 0.2, 1
        // ];
        // this.strengths = [
        //     0.1, 0.3, 0.2, 1
        // ];
        
        this.scales = [
            1, 20, 0.5
        ];
        this.strengths = [
            1, 0.1, 0.5
        ];

        this.data = new Float32Array(this.size * this.size);
}
function NoiseSampler(size) {
        if (!size)
            throw "no size specified to NoiseSampler";

        this.size = size;   
        this.scale = 1;
        this.offset = 0;
        this.smooth = true;
        this.seamless = false;

        // this.scales = [
        //     10, 0.1, 0.2, 1
        // ];
        // this.strengths = [
        //     0.1, 0.3, 0.2, 1
        // ];
        
        this.scales = [
            1, 20, 0.5
        ];
        this.strengths = [
            1, 0.1, 0.5
        ];

        this.data = new Float32Array(this.size * this.size);
}
function NoiseSampler ( size ) { if ( ! size ) throw "no size specified to NoiseSampler" ; this . size = size ; this . scale = 1 ; this . offset = 0 ; this . smooth = true ; this . seamless = false ; // this.scales = [ //     10, 0.1, 0.2, 1 // ]; // this.strengths = [ //     0.1, 0.3, 0.2, 1 // ]; this . scales = [ 1 , 20 , 0.5 ] ; this . strengths = [ 1 , 0.1 , 0.5 ] ; this . data = new Float32Array ( this . size * this . size ) ; }
Samples a 1-component texture, noise in this case
Samples a 1 - component texture noise in this case