function calcTextureOffset(textureWidth, yOffset, xOffset, channels) {

        return ((textureWidth * Math.floor(yOffset) + Math.floor(xOffset)) * channels);

    }
/**
     * Calculates the lumelOffset in the array.
     * @param textureWidth Texture width.
     * @param yOffset yOffset.
     * @param xOffset xOffset.
     * @param channels How many Channels? 8Bit or 32Bit... 1 or 4... depends!
     * @returns {number}
     */
Calculates the lumelOffset in the array.
@param textureWidth Texture width.
@param yOffset yOffset.
@param xOffset xOffset.
@param channels How many Channels.
Calculates the lumelOffset in the array . @param textureWidth Texture width . @param yOffset yOffset . @param xOffset xOffset . @param channels How many Channels .
function calcTextureOffset(textureWidth, yOffset, xOffset, channels) {
        return ((textureWidth * Math.floor(yOffset) + Math.floor(xOffset)) * channels);
    }
function calcTextureOffset ( textureWidth , yOffset , xOffset , channels ) { return ( ( textureWidth * Math . floor ( yOffset ) + Math . floor ( xOffset ) ) * channels ) ; }
Calculates the lumelOffset in the array.
Calculates the lumelOffset in the array .