This example shows how to calculate and draw a raster from spare points with the inverse of the distance algorithm using the gpu.js library.
More info at this blog post and this interactive ObservableHQ notebook