
302 19. Data VisualizationTechniques with WebGL
IO.Im ages is a convenience function to load an array of images. e function uses the
native Image API, which loads asynchronously. For example:
Listing 19.3 Native image API loading.
var image = new Image();
image.src = 'myimage.jpg';
image.onload = function() {
console.log('Image loaded');
};
e next step is to set these images as textures and to process and average the data set
to get a smooth spherical manifold.
19.4.2 Processing Data
In order to smoothen the data, we rst load the image as an RGBA (red green blue alpha)
oating-point texture, calculate the temperature change number in the alpha ...