diff --git a/examples/plasma.js b/examples/plasma.js index d2eb9b7..ee2cb7e 100644 --- a/examples/plasma.js +++ b/examples/plasma.js @@ -1,11 +1,11 @@ -import {noiseFunction3D} from 'simplex-noise'; +import {createNoise3D} from 'simplex-noise'; const canvas = document.createElement('canvas'); canvas.width = 512; canvas.height = 512; document.body.appendChild(canvas); -const noise3D = noiseFunction3D(), +const noise3D = createNoise3D(), ctx = canvas.getContext('2d'), imgdata = ctx.getImageData(0, 0, canvas.width, canvas.height), width = imgdata.width, diff --git a/examples/webpack.config.js b/examples/webpack.config.js index 1f7018b..b4f60f1 100644 --- a/examples/webpack.config.js +++ b/examples/webpack.config.js @@ -14,4 +14,5 @@ module.exports = { filename: '[name].html', title: 'Simplex-Noise.js examples' })], + mode: 'production' }; \ No newline at end of file