From bd64f2223801bbcffec0151671e9af7b3cea2345 Mon Sep 17 00:00:00 2001 From: Jonas Wagner Date: Thu, 21 Jul 2022 22:05:00 +0000 Subject: [PATCH] Fixing plasma example --- examples/plasma.js | 4 ++-- examples/webpack.config.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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